1 |
commit: 0985a8297b958391afff2e607a2ec7240cad050a |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 10 10:07:40 2017 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 10 10:07:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0985a829 |
7 |
|
8 |
sys-libs/glibc: Fix part of the test build system, bug 623548 |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
sys-libs/glibc/glibc-2.26-r1.ebuild | 11 ++++++++++- |
13 |
1 file changed, 10 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/sys-libs/glibc/glibc-2.26-r1.ebuild b/sys-libs/glibc/glibc-2.26-r1.ebuild |
16 |
index 9876c073967..fbe7444f948 100644 |
17 |
--- a/sys-libs/glibc/glibc-2.26-r1.ebuild |
18 |
+++ b/sys-libs/glibc/glibc-2.26-r1.ebuild |
19 |
@@ -280,16 +280,25 @@ glibc_do_configure() { |
20 |
# Glibc does not work with gold (for various reasons) #269274. |
21 |
tc-ld-disable-gold |
22 |
|
23 |
+ # CXX isnt handled by the multilib system, so if we dont unset here |
24 |
+ # we accumulate crap across abis |
25 |
+ unset CXX |
26 |
+ |
27 |
einfo "Configuring glibc for $1" |
28 |
|
29 |
local v |
30 |
- for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC LD {AS,C,CPP,CXX,LD}FLAGS ; do |
31 |
+ for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC CXX LD {AS,C,CPP,CXX,LD}FLAGS ; do |
32 |
einfo " $(printf '%15s' ${v}:) ${!v}" |
33 |
done |
34 |
|
35 |
# The glibc configure script doesn't properly use LDFLAGS all the time. |
36 |
export CC="$(tc-getCC ${CTARGET}) ${LDFLAGS}" |
37 |
einfo " $(printf '%15s' 'Manual CC:') ${CC}" |
38 |
+ |
39 |
+ # Some of the tests are written in C++, so we need to force our multlib abis in, bug 623548 |
40 |
+ export CXX="$(tc-getCXX ${CTARGET}) $(get_abi_CFLAGS)" |
41 |
+ einfo " $(printf '%15s' 'Manual CXX:') ${CXX}" |
42 |
+ |
43 |
echo |
44 |
|
45 |
local myconf=() |