summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-09-28 11:54:41 +0000
committerMike Frysinger <vapier@gentoo.org>2006-09-28 11:54:41 +0000
commitbe953405d9368fe37e33c4b3b7450247e9afdb4a (patch)
treebc29b7c765768ade90404af37862eb3bb6f97f66 /eclass/toolchain.eclass
parentVersion bump. (diff)
downloadhistorical-be953405d9368fe37e33c4b3b7450247e9afdb4a.tar.gz
historical-be953405d9368fe37e33c4b3b7450247e9afdb4a.tar.bz2
historical-be953405d9368fe37e33c4b3b7450247e9afdb4a.zip
only force --enable-__cxa_atexit when working with gnu targets (aka glibc) #149356
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 2b6d505ddac2..8fdbc10a3c5f 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.310 2006/09/28 11:36:37 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.311 2006/09/28 11:54:41 vapier Exp $
HOMEPAGE="http://gcc.gnu.org/"
LICENSE="GPL-2 LGPL-2.1"
@@ -1297,7 +1297,7 @@ gcc_do_configure() {
confgcc="${confgcc} --disable-__cxa_atexit --enable-target-optspace"
[[ ${GCCMAJOR}.${GCCMINOR} == 3.3 ]] && \
confgcc="${confgcc} --enable-sjlj-exceptions"
- else
+ elif [[ ${CTARGET} == *-gnu* ]] ; then
confgcc="${confgcc} --enable-__cxa_atexit"
fi
[[ ${CTARGET} == *-gnu* ]] && confgcc="${confgcc} --enable-clocale=gnu"