summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-09-22 01:33:31 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-09-22 01:33:31 +0000
commitd8f1b835ff12b53b41e84aec1b142d20b04e9726 (patch)
treedf5e64f208e95bb3fe83d8ace6fa4293e0756930 /eclass
parenttouchups (diff)
downloadgentoo-2-d8f1b835ff12b53b41e84aec1b142d20b04e9726.tar.gz
gentoo-2-d8f1b835ff12b53b41e84aec1b142d20b04e9726.tar.bz2
gentoo-2-d8f1b835ff12b53b41e84aec1b142d20b04e9726.zip
compile stage1 witn -O2 instead of -O if current and target are 3.4 and hardened. See bug #79852
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index b95d5921fe1a..061b83034705 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.194 2005/09/21 02:58:59 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.195 2005/09/22 01:33:31 eradicator Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
LICENSE="GPL-2 LGPL-2.1"
@@ -1146,6 +1146,9 @@ gcc_do_make() {
if [[ ${GCC_MAKE_TARGET} == "all" ]] ; then
STAGE1_CFLAGS=${STAGE1_CFLAGS-"${CFLAGS}"}
+ elif [[ $(gcc-version) == "3.4" && ${GCC_BRANCH_VER} == "3.4" ]] && has_hardened ; then
+ # See bug #79852
+ STAGE1_CFLAGS=${STAGE1_CFLAGS-"-O2"}
else
STAGE1_CFLAGS=${STAGE1_CFLAGS-"-O"}
fi