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 |