summaryrefslogtreecommitdiff
path: root/eclass
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
commit76a8603b2cb07277eca29d77850b322e54d394b2 (patch)
tree0327043bd7f2641c4f7ece767b32d52a21092263 /eclass
parentVersion bump. (diff)
downloadgentoo-2-76a8603b2cb07277eca29d77850b322e54d394b2.tar.gz
gentoo-2-76a8603b2cb07277eca29d77850b322e54d394b2.tar.bz2
gentoo-2-76a8603b2cb07277eca29d77850b322e54d394b2.zip
only force --enable-__cxa_atexit when working with gnu targets (aka glibc) #149356
Diffstat (limited to '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"