1 |
On Tue, 14 Jun 2016 14:55:08 +1000 Adam Carter wrote: |
2 |
> I have enabled this use flag and the output of emerge --info shows it has |
3 |
> been recognised in USE but not in FCFLAGs/CFLAGs; |
4 |
> |
5 |
> grep USE.*custom ff* |
6 |
> ffafter-cust-opt.txt:USE="custom-optimization dbus gmp-autoupdate gtk2 |
7 |
> hwaccel jemalloc3 jit pulseaudio -bindist -custom-cflags -debug -hardened |
8 |
> (-neon) (-pgo) (-selinux) -startup-notification (-system-cairo) |
9 |
> -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx |
10 |
> -system-sqlite -test -wifi" |
11 |
> ffbefore-cust-opt.txt:USE="dbus gmp-autoupdate gtk2 hwaccel jemalloc3 jit |
12 |
> pulseaudio -bindist -custom-cflags -custom-optimization -debug -hardened |
13 |
> (-neon) (-pgo) (-selinux) -startup-notification (-system-cairo) |
14 |
> -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx |
15 |
> -system-sqlite -test -wifi" |
16 |
> |
17 |
> grep CFLAGS ff* |
18 |
> ffafter-cust-opt.txt:CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm |
19 |
> -O2 -pipe" |
20 |
> ffafter-cust-opt.txt:FCFLAGS="-O2 -pipe" |
21 |
> ffafter-cust-opt.txt:CFLAGS="-march=amdfam10 -pipe" |
22 |
> ffbefore-cust-opt.txt:CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm |
23 |
> -O2 -pipe" |
24 |
> ffbefore-cust-opt.txt:FCFLAGS="-O2 -pipe" |
25 |
> ffbefore-cust-opt.txt:CFLAGS="-march=amdfam10 -pipe" |
26 |
> |
27 |
> I assumed that enabling custom-optimization would let the optimization |
28 |
> setting from CFLAGS in make.conf pass through unfiltered, but that's not |
29 |
> the case. What else do i need to do to make it work? |
30 |
|
31 |
You missed another flag: USE="custom-cflags". You should really |
32 |
read USE flag descriptions (/usr/portage/use.{,local.}desc): |
33 |
|
34 |
custom-cflags - Build with user-specified CFLAGS (unsupported) |
35 |
www-client/firefox:custom-optimization - Fine-tune custom compiler |
36 |
optimizations (-Os, -O0, -O1, -O2, -O3) |
37 |
|
38 |
So custom-optimization will only get -O[0123s] option from your |
39 |
CFLAGS, if you need another options, use custom-cflags. If you need |
40 |
both (-O* and other options), set both USE flags (as can be seen |
41 |
from mozcoreconf-v4.eclass). |
42 |
|
43 |
Best regards, |
44 |
Andrew Savchenko |