From 0c455cf92a78254be1b4f3bcb470c8608d63328e Mon Sep 17 00:00:00 2001 From: Raúl Porcel Date: Sat, 26 Jul 2008 16:05:30 +0000 Subject: Fix hppa optimization --- eclass/mozcoreconf-2.eclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad