diff options
author | Sardem FF7 <sardemff7.pub@gmail.com> | 2011-05-08 15:50:49 +0200 |
---|---|---|
committer | Sardem FF7 <sardemff7.pub@gmail.com> | 2011-05-08 15:51:29 +0200 |
commit | f9ff4c60fe9895d8de7ff70b4202c1e4e836b70a (patch) | |
tree | 88c0deaf13490a5f400fdac3cfbf479e7f49de72 | |
parent | x11-plugins/pidgin-libnotify+: Bump to 1.2.2 (bugfix) (diff) | |
download | sardemff7-f9ff4c60fe9895d8de7ff70b4202c1e4e836b70a.tar.gz sardemff7-f9ff4c60fe9895d8de7ff70b4202c1e4e836b70a.tar.bz2 sardemff7-f9ff4c60fe9895d8de7ff70b4202c1e4e836b70a.zip |
mozilla-config.eclass: Update optimizations
-rw-r--r-- | eclass/mozilla-config.eclass | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/eclass/mozilla-config.eclass b/eclass/mozilla-config.eclass index fea487c..6ceb46a 100644 --- a/eclass/mozilla-config.eclass +++ b/eclass/mozilla-config.eclass @@ -94,21 +94,24 @@ function mozconfig_configure { #################################### # Set optimization level - if [[ ${ARCH} == x86 ]]; then - mozconfig_annotate "less then -O2 causes a segfault on x86" --enable-optimize=-O2 - elif use custom-optimization; then + if use custom-optimization; then + local opt=-O2 # Set optimization level based on CFLAGS - if is-flag -O0; then - mozconfig_annotate 'CFLAGS optimization' --enable-optimize=-O0 - elif is-flag -O1; then - mozconfig_annotate 'CFLAGS optimization' --enable-optimize=-O1 - elif is-flag -Os; then - mozconfig_annotate 'CFLAGS optimization' --enable-optimize=-Os - else - mozconfig_annotate 'Default optimization: Gentoo' --enable-optimize=-O2 + if [[ ${ARCH} == x86 ]]; then + if is-flag -O0; then + opt=-O0 + elif is-flag -O1; then + opt=-O1 + elif is-flag -Os; then + opt=-Os + fi + elif is-flag -O3; then + opt=-O3 fi + mozconfig_annotate 'USE-flag: +custom-optimization' --enable-optimize=$opt else # Enable Mozilla's default + # It should be fine on all platform mozconfig_annotate 'Default optimization: Mozilla' --enable-optimize fi |