summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-03-08 12:07:07 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-03-08 12:07:07 +0000
commit07b788955555e6aa39d3a0d65800ae262027fa5c (patch)
tree949534b35933733406cffafe8d17c13e9a67f7ec /eclass/toolchain.eclass
parentFix compilation of libstdc++ for crosscompilation toolchains. Add filtering ... (diff)
downloadgentoo-2-07b788955555e6aa39d3a0d65800ae262027fa5c.tar.gz
gentoo-2-07b788955555e6aa39d3a0d65800ae262027fa5c.tar.bz2
gentoo-2-07b788955555e6aa39d3a0d65800ae262027fa5c.zip
Cleaned up comments.
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass9
1 files changed, 2 insertions, 7 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 7cc86bbfa3b2..424ca5d27e74 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.122 2005/03/08 12:00:09 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.123 2005/03/08 12:07:07 eradicator Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
LICENSE="GPL-2 LGPL-2.1"
@@ -1209,14 +1209,9 @@ gcc_do_filter_flags() {
# used by xgcc for building stage2/3 compiler
if is_crosscompile; then
+ # Set this to something sane for both native and target
CFLAGS="-O2 -pipe"
- fi
- # If we're doing make all or making a crosscompiler, optimize
- # our stage1.
- # If we're a cross-compiler, set BOOT_CFLAGS, CFLAGS, and CXXFLAGS
- # for our target.
- if is_crosscompile; then
local VAR="CFLAGS_"${CTARGET//-/_}
CXXFLAGS=${!VAR}
fi