From: Mark David Dumlao <madumlao@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How reliable is emerge --info output?
Date: Mon, 14 Jan 2013 20:05:04 +0800 [thread overview]
Message-ID: <CAG2nJkO70K+y3jAUkDHzwQwqG5rOhoVVp9qCpBi1fNdhwgFMzg@mail.gmail.com> (raw)
In-Reply-To: <CAC=wYCFNz=MwXpCanqV4wY-YsA+NpfoLs+jLquFt8u1XjaLO-w@mail.gmail.com>
On Mon, Jan 14, 2013 at 7:18 PM, Adam Carter <adamcarter3@gmail.com> wrote:
> The first CFLAGS (or CXXFLAGS) line below appears to be taken from the
> environment setting, and the second is from the "<packagename> was built
> with the following" section of the emerge --info output.
>
> Squid looks as it should (the -flto is added to that package only) but for
> firefox it appears that -O2 has been stripped, and not replaced with -O3,
> which IIRC is the default for that package.
>
> # grep ^CFL /etc/make.conf
> CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm -O2 -pipe"
>
> # emerge --info squid | grep ^CFL
> CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm -O2 -pipe"
> CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm -O2 -pipe -flto"
>
> # emerge --info firefox | grep ^CFL
> CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm -O2 -pipe"
> CFLAGS="-march=amdfam10 -pipe -mno-avx"
>
> Is anyone getting O2 or O3 in their emerge --info firefox output?
>
Seems to me like -O2 is the default, according to
/usr/portage/eclass/mozcoreconf-2.eclass
"""
# Set optimization level
if [[ ${ARCH} == hppa ]]; then
mozconfig_annotate "more than -O0 causes a segfault on
hppa" --enable-optimize=-O0
elif [[ ${ARCH} == x86 ]]; then
mozconfig_annotate "less then -O2 causes a segfault on
x86" --enable-optimize=-O2
elif use custom-optimization || [[ ${ARCH} =~ (alpha|ia64) ]]; then
# Set optimization level based on CFLAGS
if is-flag -O0; then
mozconfig_annotate "from CFLAGS" --enable-optimize=-O0
elif [[ ${ARCH} == ppc ]] && has_version
'>=sys-libs/glibc-2.8'; then
mozconfig_annotate "more than -O1 segfaults on
ppc with glibc-2.8" --enable-optimize=-O1
elif is-flag -O3; then
mozconfig_annotate "from CFLAGS" --enable-optimize=-O3
elif is-flag -O1; then
mozconfig_annotate "from CFLAGS" --enable-optimize=-O1
elif is-flag -Os; then
mozconfig_annotate "from CFLAGS" --enable-optimize=-Os
else
mozconfig_annotate "Gentoo's default
optimization" --enable-optimize=-O2
fi
else
# Enable Mozilla's default
mozconfig_annotate "mozilla default" --enable-optimize
fi
"""
--
This email is: [ ] actionable [ ] fyi [x] social
Response needed: [ ] yes [x] up to you [ ] no
Time-sensitive: [ ] immediate [ ] soon [x] none
next prev parent reply other threads:[~2013-01-14 12:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-14 11:18 [gentoo-user] How reliable is emerge --info output? Adam Carter
2013-01-14 11:45 ` Bruce Hill
2013-01-14 12:05 ` Mark David Dumlao [this message]
2013-01-14 21:53 ` Adam Carter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAG2nJkO70K+y3jAUkDHzwQwqG5rOhoVVp9qCpBi1fNdhwgFMzg@mail.gmail.com \
--to=madumlao@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox