summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-03 05:43:51 +0000
committerMike Frysinger <vapier@gentoo.org>2009-07-03 05:43:51 +0000
commit12da1246b0cc5b4aa7f3239656cc92e60d261241 (patch)
treea2221144f94352e31c085a543faa451fefc54d76
parentVersion bump (diff)
downloadgentoo-2-12da1246b0cc5b4aa7f3239656cc92e60d261241.tar.gz
gentoo-2-12da1246b0cc5b4aa7f3239656cc92e60d261241.tar.bz2
gentoo-2-12da1246b0cc5b4aa7f3239656cc92e60d261241.zip
add USE=nptl to control TLS for uClibc targets #270767 by zabuzzman
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 190d8eb446ae..1d17d60adfa5 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.400 2009/06/09 20:59:43 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.401 2009/07/03 05:43:51 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -135,7 +135,7 @@ if [[ ${ETYPE} == "gcc-library" ]] ; then
IUSE="nls build test"
SLOT="${CTARGET}-${SO_VERSION_SLOT:-5}"
else
- IUSE="multislot test"
+ IUSE="multislot nptl test"
if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
IUSE="${IUSE} altivec build fortran nls nocxx"
@@ -1385,7 +1385,7 @@ gcc_do_configure() {
# __cxa_atexit is "essential for fully standards-compliant handling of
# destructors", but apparently requires glibc.
if [[ ${CTARGET} == *-uclibc* ]] ; then
- confgcc="${confgcc} --disable-__cxa_atexit --enable-target-optspace"
+ confgcc="${confgcc} --disable-__cxa_atexit --enable-target-optspace $(use_enable nptl tls)"
[[ ${GCCMAJOR}.${GCCMINOR} == 3.3 ]] && confgcc="${confgcc} --enable-sjlj-exceptions"
if tc_version_is_at_least 3.4 && [[ ${GCCMAJOR}.${GCCMINOR} < 4.3 ]] ; then
confgcc="${confgcc} --enable-clocale=uclibc"