Gentoo Archives: gentoo-dev

From: James Le Cuirot <chewi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] How to set CXX compiler?
Date: Fri, 03 Jul 2020 22:47:26
Message-Id: 20200703234708.1fe003b9@symphony.aura-online.co.uk
In Reply to: [gentoo-dev] How to set CXX compiler? by "Xianwen Chen (陈贤文)"
1 On Fri, 03 Jul 2020 22:35:30 +0000
2 Xianwen Chen (陈贤文) <x@××××.ac> wrote:
3
4 > In the Makefile, it is written that
5 >
6 > cc = g++
7 >
8 > I would like to use sed to patch it so that it ebuild knows which g++ to
9 > use. For example, depending on whether ccache is set, ebuild shall know
10 > whether to use ccache.
11
12 Rather than patch it, start the build with:
13
14 emake cc="$(tc-getCXX)"
15
16 You'll probably need to do more to respect CXXFLAGS and such though.
17
18 --
19 James Le Cuirot (chewi)
20 Gentoo Linux Developer

Replies

Subject Author
Re: [gentoo-dev] How to set CXX compiler? "Xianwen Chen (陈贤文)" <x@××××.ac>