only disable shared/threads when building a stage1 cross-compiler
authorMike Frysinger <vapier@gentoo.org>
Mon, 13 Dec 2004 19:58:17 +0000 (19:58 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 13 Dec 2004 19:58:17 +0000 (19:58 +0000)
eclass/toolchain.eclass

index d5d730e97c480e7d9b9fcbcc93d27c0a44b52fc4..f59dcfdb630bc8a1a6bc1f54110782569a6276af 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/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"