summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2008-06-26 16:45:57 +0000
committerRaúl Porcel <armin76@gentoo.org>2008-06-26 16:45:57 +0000
commita1015316807f43e8dff742aa8052ecead1e03033 (patch)
tree64b71744480e8f02ad2468cdd9664956896bee2e /eclass
parentStable on ppc wrt bug 229505 (diff)
downloadhistorical-a1015316807f43e8dff742aa8052ecead1e03033.tar.gz
historical-a1015316807f43e8dff742aa8052ecead1e03033.tar.bz2
historical-a1015316807f43e8dff742aa8052ecead1e03033.zip
Add workaround for ppc with glibc-2.8, bug #228957
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 d62ca37c4f07..8da88be7d5fb 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.3 2008/06/21 19:32:18 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mozcoreconf-2.eclass,v 1.4 2008/06/26 16:45:57 armin76 Exp $
#
# mozcoreconf.eclass : core options for mozilla
# inherit mozconfig-2 if you need USE flags
@@ -80,6 +80,8 @@ mozconfig_init() {
mozconfig_annotate "from CFLAGS" --enable-optimize=-O0
elif [[ ${ARCH} == hppa ]]; then
mozconfig_annotate "more than -O0 causes segfaults on hppa" --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 -O1; then
mozconfig_annotate "from CFLAGS" --enable-optimize=-O1
elif is-flag -Os; then