Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] How to try custom-optimization in firefox
Date: Tue, 14 Jun 2016 08:40:25
Message-Id: CAC=wYCGb2KuuQFYStgfwekavK8OQFznUWoYOZDFduv5UMBrOug@mail.gmail.com
In Reply to: Re: [gentoo-user] How to try custom-optimization in firefox by Andrew Savchenko
1 You missed another flag: USE="custom-cflags". You should really
2
3 > read USE flag descriptions (/usr/portage/use.{,local.}desc):
4 >
5 > custom-cflags - Build with user-specified CFLAGS (unsupported)
6 > www-client/firefox:custom-optimization - Fine-tune custom compiler
7 > optimizations (-Os, -O0, -O1, -O2, -O3)
8 >
9 > So custom-optimization will only get -O[0123s] option from your
10 > CFLAGS,
11
12
13 That's all I want. However, the -O2 was still filtered even though i have
14 custom-optimization on.
15 emerge --info output;
16
17 =================================================================
18 Package Settings
19 =================================================================
20
21 www-client/firefox-47.0::gentoo was built with the following:
22 USE="*custom-optimization* dbus gmp-autoupdate gtk2 hwaccel jemalloc3 jit
23 pulseaudio -bindist -custom-cflags -debug -hardened (-neon) (-pgo)
24 (-selinux) -startup-notification (-system-cairo) -system-harfbuzz
25 -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite
26 -test -wifi" ABI_X86="64" LINGUAS="-ach -af -an -ar -as -ast -az -be -bg
27 -bn_BD -bn_IN -br -bs -ca -cs -cy -da -de -el -en_GB -en_ZA -eo -es_AR
28 -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -he
29 -hi_IN -hr -hsb -hu -hy_AM -id -is -it -ja -kk -km -kn -ko -lt -lv -mai -mk
30 -ml -mr -ms -nb_NO -nl -nn_NO -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si
31 -sk -sl -son -sq -sr -sv_SE -ta -te -th -tr -uk -uz -vi -xh -zh_CN -zh_TW"
32 CFLAGS=*"-march=amdfam10 -pipe"*
33 CXXFLAGS="-march=amdfam10 -pipe"
34 LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=amdfam10 -pipe
35 -Wl,-rpath=/usr/lib64/firefox"

Replies

Subject Author
Re: [gentoo-user] How to try custom-optimization in firefox Andrew Savchenko <bircoph@g.o>