summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-13 19:58:17 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-13 19:58:17 +0000
commit9236a9e22f2f1ac2949f317d82b30475a2369d98 (patch)
tree6cb55256fa2c4c145941b100bc39da6f27fbb898 /eclass/toolchain.eclass
parentBump. (Manifest recommit) (diff)
downloadgentoo-2-9236a9e22f2f1ac2949f317d82b30475a2369d98.tar.gz
gentoo-2-9236a9e22f2f1ac2949f317d82b30475a2369d98.tar.bz2
gentoo-2-9236a9e22f2f1ac2949f317d82b30475a2369d98.zip
only disable shared/threads when building a stage1 cross-compiler
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index d5d730e97c48..f59dcfdb630b 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -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/toolchain.eclass,v 1.67 2004/12/08 01:28:41 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.68 2004/12/13 19:58:17 vapier Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
@@ -1178,7 +1178,7 @@ gcc_do_configure() {
--disable-checking \
--disable-werror \
--disable-libunwind-exceptions"
- if [ "${CHOST}" != "${CTARGET}" ] ; then
+ if use nocxx && [[ ${CHOST} != ${CTARGET} ]] ; then
confgcc="${confgcc} --disable-shared --disable-threads"
else
confgcc="${confgcc} --enable-shared --enable-threads=posix"