summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2008-07-26 16:05:30 +0000
committerRaúl Porcel <armin76@gentoo.org>2008-07-26 16:05:30 +0000
commit0c455cf92a78254be1b4f3bcb470c8608d63328e (patch)
tree802a921a0b0d7693afc0cbd9919cf324807878ba /eclass
parentVersion bump (bug #229849) (diff)
downloadgentoo-2-0c455cf92a78254be1b4f3bcb470c8608d63328e.tar.gz
gentoo-2-0c455cf92a78254be1b4f3bcb470c8608d63328e.tar.bz2
gentoo-2-0c455cf92a78254be1b4f3bcb470c8608d63328e.zip
Fix hppa optimization
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mozcoreconf-2.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/mozcoreconf-2.eclass b/eclass/mozcoreconf-2.eclass
index 21a6cf821f7b..3420fc3f50d5 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.7 2008/07/19 16:56:19 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mozcoreconf-2.eclass,v 1.8 2008/07/26 16:05:30 armin76 Exp $
#
# mozcoreconf.eclass : core options for mozilla
# inherit mozconfig-2 if you need USE flags
@@ -78,12 +78,12 @@ mozconfig_init() {
####################################
# Set optimization level
- if use custom-optimization; then
+ if [[ ${ARCH} == hppa ]]; then
+ mozconfig_annotate "more than -O0 causes segfaults on hppa" --enable-optimize=-O0
+ elif use custom-optimization; then
# Set optimization level based on CFLAGS
if is-flag -O0; then
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