1 |
commit: 6809e503179036054f1f45979b09808ecd4a4342 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 22 06:35:09 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 22 06:35:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6809e503 |
7 |
|
8 |
toolchain.eclass: drop USE=nptl from kgcc64, bug #642932 |
9 |
|
10 |
USE=nptl is neededonly for compilers that target userspace. |
11 |
kgcc64 is for building kernels only. |
12 |
|
13 |
Reported-by: Rolf Eike Beer |
14 |
Closes: https://bugs.gentoo.org/642932 |
15 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
16 |
|
17 |
eclass/toolchain.eclass | 14 ++++++++------ |
18 |
1 file changed, 8 insertions(+), 6 deletions(-) |
19 |
|
20 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
21 |
index e8fa4d69412..12b86214a05 100644 |
22 |
--- a/eclass/toolchain.eclass |
23 |
+++ b/eclass/toolchain.eclass |
24 |
@@ -136,7 +136,7 @@ else |
25 |
# is commonly used as a main compiler. |
26 |
GCC_EBUILD_TEST_FLAG='regression-test' |
27 |
fi |
28 |
-IUSE="${GCC_EBUILD_TEST_FLAG} vanilla +nls +nptl" |
29 |
+IUSE="${GCC_EBUILD_TEST_FLAG} vanilla +nls" |
30 |
|
31 |
TC_FEATURES=() |
32 |
|
33 |
@@ -145,7 +145,7 @@ tc_has_feature() { |
34 |
} |
35 |
|
36 |
if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then |
37 |
- IUSE+=" altivec debug +cxx +fortran" TC_FEATURES+=(fortran) |
38 |
+ IUSE+=" altivec debug +cxx +fortran +nptl" TC_FEATURES+=(fortran nptl) |
39 |
[[ -n ${PIE_VER} ]] && IUSE+=" nopie" |
40 |
[[ -n ${HTB_VER} ]] && IUSE+=" boundschecking" |
41 |
[[ -n ${D_VER} ]] && IUSE+=" d" |
42 |
@@ -1100,10 +1100,12 @@ toolchain_src_configure() { |
43 |
# destructors", but apparently requires glibc. |
44 |
case ${CTARGET} in |
45 |
*-uclibc*) |
46 |
- confgcc+=( |
47 |
- --disable-__cxa_atexit |
48 |
- $(use_enable nptl tls) |
49 |
- ) |
50 |
+ if tc_has_feature nptl ; then |
51 |
+ confgcc+=( |
52 |
+ --disable-__cxa_atexit |
53 |
+ $(use_enable nptl tls) |
54 |
+ ) |
55 |
+ fi |
56 |
tc_version_is_between 3.3 3.4 && confgcc+=( --enable-sjlj-exceptions ) |
57 |
if tc_version_is_between 3.4 4.3 ; then |
58 |
confgcc+=( --enable-clocale=uclibc ) |