summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-22 13:29:45 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-22 13:29:45 +0000
commitb765521a98a4f7ce69748946511dba6af7b990b4 (patch)
treeae88a2586c82fc75c5afa753fb225cb585d902e4 /eclass/toolchain.eclass
parentStable on sparc. Builds fine, runs all tests, no open bugs. (diff)
downloadgentoo-2-b765521a98a4f7ce69748946511dba6af7b990b4.tar.gz
gentoo-2-b765521a98a4f7ce69748946511dba6af7b990b4.tar.bz2
gentoo-2-b765521a98a4f7ce69748946511dba6af7b990b4.zip
force all -elf toolchains to build with --with-newlib #158495
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index dcd0dc6d2d06..aa619b18519d 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -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