summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJory Pratt <anarchy@gentoo.org>2010-01-24 19:08:31 +0000
committerJory Pratt <anarchy@gentoo.org>2010-01-24 19:08:31 +0000
commit31b748c4f6a800a15c48c738954ad684ee56d9eb (patch)
tree005016687eda0f9c2474ce57787b4f9e15fe9a4b /eclass
parentVersion bump. (diff)
downloadgentoo-2-31b748c4f6a800a15c48c738954ad684ee56d9eb.tar.gz
gentoo-2-31b748c4f6a800a15c48c738954ad684ee56d9eb.tar.bz2
gentoo-2-31b748c4f6a800a15c48c738954ad684ee56d9eb.zip
fix brekage from mozilla defaults on x86
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mozcoreconf-2.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/mozcoreconf-2.eclass b/eclass/mozcoreconf-2.eclass
index f231d0581c1a..3a9514f11798 100644
--- a/eclass/mozcoreconf-2.eclass
+++ b/eclass/mozcoreconf-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mozcoreconf-2.eclass,v 1.13 2009/12/02 22:41:59 anarchy Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mozcoreconf-2.eclass,v 1.14 2010/01/24 19:08:31 anarchy Exp $
#
# mozcoreconf.eclass : core options for mozilla
# inherit mozconfig-2 if you need USE flags
@@ -84,6 +84,8 @@ mozconfig_init() {
# Set optimization level
if [[ ${ARCH} == hppa ]]; then
mozconfig_annotate "more than -O0 causes segfaults 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 ]]; then
# Set optimization level based on CFLAGS
if is-flag -O0; then