Forcing --enable-optimize=-O0 on hppa.
authorGuy Martin <gmsoft@gentoo.org>
Wed, 22 Dec 2004 21:46:09 +0000 (21:46 +0000)
committerGuy Martin <gmsoft@gentoo.org>
Wed, 22 Dec 2004 21:46:09 +0000 (21:46 +0000)
eclass/mozconfig.eclass
eclass/mozilla.eclass

index 8cc8d6bf87461f1b27c850b4c0c243d5e0df2884..242b76107ec5aa4e703cb716094272d09108ab1a 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mozconfig.eclass,v 1.4 2004/11/30 23:12:07 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mozconfig.eclass,v 1.5 2004/12/22 21:46:09 gmsoft Exp $
 #
 # mozconfig.eclass: the new mozilla.eclass
 
@@ -81,6 +81,8 @@ mozconfig_init() {
        # 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} == alpha || ${ARCH} == amd64 || ${ARCH} == ia64 ]]; then
                mozconfig_annotate "more than -O1 causes segfaults on 64-bit (bug 33767)" \
                        --enable-optimize=-O1
index 848558d6be71040d1ad6a41b82489cff1abe2a99..2a399c1112242bd17022a198759c5ce995253606 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mozilla.eclass,v 1.25 2004/11/30 20:44:05 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mozilla.eclass,v 1.26 2004/12/22 21:46:09 gmsoft Exp $
 #
 # You probably don't want to change this eclass.  Newer ebuilds use
 # mozconfig.eclass instead.
@@ -63,6 +63,8 @@ mozilla_conf() {
        # Set optimization level based on CFLAGS
        if is-flag -O0; then
                mozilla_annotate "from CFLAGS" --enable-optimize=-O0
+       elif [[ ${ARCH} == hppa ]]; then
+               mozconfig_annotate "more than -O0 causes segfaults on hppa" --enable-optimize=-O0
        elif [[ ${ARCH} == alpha || ${ARCH} == amd64 || ${ARCH} == ia64 ]]; then
                mozilla_annotate "more than -O1 causes segfaults on 64-bit (bug 33767)" \
                        --enable-optimize=-O1