diff options
author | Jory A. Pratt <anarchy@gentoo.org> | 2017-05-31 15:37:19 -0500 |
---|---|---|
committer | Jory A. Pratt <anarchy@gentoo.org> | 2017-05-31 15:37:19 -0500 |
commit | bd950bc8aaa8170b0495f46218a77912396d0046 (patch) | |
tree | 8d4466add11f699ad21d845557b4ca3abec52ee3 | |
parent | Revert "eclass/mozcoreconf-v5: Work around broken optimization level of -Os" (diff) | |
download | mozilla-bd950bc8aaa8170b0495f46218a77912396d0046.tar.gz mozilla-bd950bc8aaa8170b0495f46218a77912396d0046.tar.bz2 mozilla-bd950bc8aaa8170b0495f46218a77912396d0046.zip |
Revert "Revert "eclass/mozcoreconf-v5: Work around broken optimization level of -Os""
This reverts commit d0ba26e4a868bddfe2166dd1c37b48f51f8f2d86.
-rw-r--r-- | eclass/mozcoreconf-v5.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/mozcoreconf-v5.eclass b/eclass/mozcoreconf-v5.eclass index 4ecfbd8b..854b3cbd 100644 --- a/eclass/mozcoreconf-v5.eclass +++ b/eclass/mozcoreconf-v5.eclass @@ -158,8 +158,8 @@ mozconfig_init() { # 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 [[ ${ARCH} =~ (x86|amd64) ]]; then + mozconfig_annotate "Work around broken gcc optimization level" --enable-optimize=-O2 elif use custom-optimization || [[ ${ARCH} =~ (alpha|ia64) ]]; then # Set optimization level based on CFLAGS if is-flag -O0; then |