On Tue, 14 Jun 2016 14:55:08 +1000 Adam Carter wrote: > I have enabled this use flag and the output of emerge --info shows it has > been recognised in USE but not in FCFLAGs/CFLAGs; > > grep USE.*custom ff* > ffafter-cust-opt.txt:USE="custom-optimization dbus gmp-autoupdate gtk2 > hwaccel jemalloc3 jit pulseaudio -bindist -custom-cflags -debug -hardened > (-neon) (-pgo) (-selinux) -startup-notification (-system-cairo) > -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx > -system-sqlite -test -wifi" > ffbefore-cust-opt.txt:USE="dbus gmp-autoupdate gtk2 hwaccel jemalloc3 jit > pulseaudio -bindist -custom-cflags -custom-optimization -debug -hardened > (-neon) (-pgo) (-selinux) -startup-notification (-system-cairo) > -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx > -system-sqlite -test -wifi" > > grep CFLAGS ff* > ffafter-cust-opt.txt:CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm > -O2 -pipe" > ffafter-cust-opt.txt:FCFLAGS="-O2 -pipe" > ffafter-cust-opt.txt:CFLAGS="-march=amdfam10 -pipe" > ffbefore-cust-opt.txt:CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm > -O2 -pipe" > ffbefore-cust-opt.txt:FCFLAGS="-O2 -pipe" > ffbefore-cust-opt.txt:CFLAGS="-march=amdfam10 -pipe" > > I assumed that enabling custom-optimization would let the optimization > setting from CFLAGS in make.conf pass through unfiltered, but that's not > the case. What else do i need to do to make it work?
You missed another flag: USE="custom-cflags". You should really read USE flag descriptions (/usr/portage/use.{,local.}desc): custom-cflags - Build with user-specified CFLAGS (unsupported) www-client/firefox:custom-optimization - Fine-tune custom compiler optimizations (-Os, -O0, -O1, -O2, -O3) So custom-optimization will only get -O[0123s] option from your CFLAGS, if you need another options, use custom-cflags. If you need both (-O* and other options), set both USE flags (as can be seen from mozcoreconf-v4.eclass). Best regards, Andrew Savchenko
pgpUZ666RMISS.pgp
Description: PGP signature