force all -elf toolchains to build with --with-newlib #158495
authorMike Frysinger <vapier@gentoo.org>
Fri, 22 Dec 2006 13:29:45 +0000 (13:29 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 22 Dec 2006 13:29:45 +0000 (13:29 +0000)
eclass/toolchain.eclass

index dcd0dc6d2d062c1c88235835d1818efde9893384..aa619b18519d12a312cb0f8fc6e3387b9487573d 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.316 2006/11/13 18:57:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.317 2006/12/22 13:29:45 vapier Exp $
 
 HOMEPAGE="http://gcc.gnu.org/"
 LICENSE="GPL-2 LGPL-2.1"
@@ -1290,6 +1290,7 @@ gcc_do_configure() {
                        confgcc="${confgcc} --enable-bootstrap"
                fi
        fi
+       [[ ${CTARGET} == *-elf ]] && confgcc="${confgcc} --with-newlib"
        # __cxa_atexit is "essential for fully standards-compliant handling of
        # destructors", but apparently requires glibc.
        # --enable-sjlj-exceptions : currently the unwind stuff seems to work