summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-15 07:13:25 +0000
committerMike Frysinger <vapier@gentoo.org>2009-03-15 07:13:25 +0000
commit8f94abaf359f404ad3000fe9b04432d5a76ad62b (patch)
treeae0b19154480ffa3a15b9a78a532f19fe6aecd3e /eclass/toolchain.eclass
parenttreelang and boundschecking do not play well together #260532 (diff)
downloadhistorical-8f94abaf359f404ad3000fe9b04432d5a76ad62b.tar.gz
historical-8f94abaf359f404ad3000fe9b04432d5a76ad62b.tar.bz2
historical-8f94abaf359f404ad3000fe9b04432d5a76ad62b.zip
use --enable-clocale=uclibc for [3.4..4.2] #258642
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 969ab2bd072f..f25f88be3cb5 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.394 2009/03/15 07:11:56 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.395 2009/03/15 07:13:25 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -1371,7 +1371,9 @@ gcc_do_configure() {
if [[ ${CTARGET} == *-uclibc* ]] ; then
confgcc="${confgcc} --disable-__cxa_atexit --enable-target-optspace"
[[ ${GCCMAJOR}.${GCCMINOR} == 3.3 ]] && confgcc="${confgcc} --enable-sjlj-exceptions"
- [[ ${GCCMAJOR}.${GCCMINOR} > 3.3 ]] && confgcc="${confgcc} --enable-clocale=uclibc"
+ if tc_version_is_at_least 3.4 && [[ ${GCCMAJOR}.${GCCMINOR} < 4.3 ]] ; then
+ confgcc="${confgcc} --enable-clocale=uclibc"
+ fi
elif [[ ${CTARGET} == *-gnu* ]] ; then
confgcc="${confgcc} --enable-__cxa_atexit"
confgcc="${confgcc} --enable-clocale=gnu"