summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-08-22 07:35:09 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2019-08-22 07:35:09 +0100
commit6809e503179036054f1f45979b09808ecd4a4342 (patch)
tree08f229b09a66b4c2dddf0935096fd7b8fa846112 /eclass
parentsys-fs/udev: stable 242 for hppa, bug #691148 (diff)
downloadgentoo-6809e503179036054f1f45979b09808ecd4a4342.tar.gz
gentoo-6809e503179036054f1f45979b09808ecd4a4342.tar.bz2
gentoo-6809e503179036054f1f45979b09808ecd4a4342.zip
toolchain.eclass: drop USE=nptl from kgcc64, bug #642932
USE=nptl is neededonly for compilers that target userspace. kgcc64 is for building kernels only. Reported-by: Rolf Eike Beer Closes: https://bugs.gentoo.org/642932 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass14
1 files changed, 8 insertions, 6 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index e8fa4d69412b..12b86214a055 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -136,7 +136,7 @@ else
# is commonly used as a main compiler.
GCC_EBUILD_TEST_FLAG='regression-test'
fi
-IUSE="${GCC_EBUILD_TEST_FLAG} vanilla +nls +nptl"
+IUSE="${GCC_EBUILD_TEST_FLAG} vanilla +nls"
TC_FEATURES=()
@@ -145,7 +145,7 @@ tc_has_feature() {
}
if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
- IUSE+=" altivec debug +cxx +fortran" TC_FEATURES+=(fortran)
+ IUSE+=" altivec debug +cxx +fortran +nptl" TC_FEATURES+=(fortran nptl)
[[ -n ${PIE_VER} ]] && IUSE+=" nopie"
[[ -n ${HTB_VER} ]] && IUSE+=" boundschecking"
[[ -n ${D_VER} ]] && IUSE+=" d"
@@ -1100,10 +1100,12 @@ toolchain_src_configure() {
# destructors", but apparently requires glibc.
case ${CTARGET} in
*-uclibc*)
- confgcc+=(
- --disable-__cxa_atexit
- $(use_enable nptl tls)
- )
+ if tc_has_feature nptl ; then
+ confgcc+=(
+ --disable-__cxa_atexit
+ $(use_enable nptl tls)
+ )
+ fi
tc_version_is_between 3.3 3.4 && confgcc+=( --enable-sjlj-exceptions )
if tc_version_is_between 3.4 4.3 ; then
confgcc+=( --enable-clocale=uclibc )