summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-11-14 09:13:52 +0000
committerMike Frysinger <vapier@gentoo.org>2004-11-14 09:13:52 +0000
commit23f353aac613519b8a3b2563b2ce17b1b534b38d (patch)
tree2b8aa53f9514d36fb489fa16f9d971f75af4bd68 /eclass
parentStable on ppc. (diff)
downloadhistorical-23f353aac613519b8a3b2563b2ce17b1b534b38d.tar.gz
historical-23f353aac613519b8a3b2563b2ce17b1b534b38d.tar.bz2
historical-23f353aac613519b8a3b2563b2ce17b1b534b38d.zip
disable threads/shared when crosscompiling
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass11
1 files changed, 7 insertions, 4 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index ea48d147433b..d02ab80bfdb5 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.47 2004/11/09 21:18:31 lv Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.48 2004/11/14 09:13:52 vapier Exp $
#
# This eclass should contain general toolchain-related functions that are
# expected to not change, or change much.
@@ -954,12 +954,15 @@ gcc_do_configure() {
# reasonably sane globals (hopefully)
confgcc="${confgcc} \
- --enable-shared \
--with-system-zlib \
--disable-checking \
--disable-werror \
- --disable-libunwind-exceptions \
- --enable-threads=posix"
+ --disable-libunwind-exceptions"
+ if [ "${CHOST}" != "${CTARGET}" ] ; then
+ confgcc="${confgcc} --disable-shared --disable-threads"
+ else
+ confgcc="${confgcc} --enable-shared --enable-threads=posix"
+ fi
# default arch support
#use sparc && confgcc="${confgcc} --with-cpu=v7"