From: Mike Frysinger Date: Sun, 14 Nov 2004 09:13:52 +0000 (+0000) Subject: disable threads/shared when crosscompiling X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23f353aac613519b8a3b2563b2ce17b1b534b38d;p=gentoo.git disable threads/shared when crosscompiling --- 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"