From 0985a8297b958391afff2e607a2ec7240cad050a Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sun, 10 Sep 2017 12:07:40 +0200 Subject: sys-libs/glibc: Fix part of the test build system, bug 623548 Package-Manager: Portage-2.3.8, Repoman-2.3.3 --- sys-libs/glibc/glibc-2.26-r1.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys-libs/glibc/glibc-2.26-r1.ebuild b/sys-libs/glibc/glibc-2.26-r1.ebuild index 9876c073967f..fbe7444f9488 100644 --- a/sys-libs/glibc/glibc-2.26-r1.ebuild +++ b/sys-libs/glibc/glibc-2.26-r1.ebuild @@ -280,16 +280,25 @@ glibc_do_configure() { # Glibc does not work with gold (for various reasons) #269274. tc-ld-disable-gold + # CXX isnt handled by the multilib system, so if we dont unset here + # we accumulate crap across abis + unset CXX + einfo "Configuring glibc for $1" local v - for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC LD {AS,C,CPP,CXX,LD}FLAGS ; do + for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC CXX LD {AS,C,CPP,CXX,LD}FLAGS ; do einfo " $(printf '%15s' ${v}:) ${!v}" done # The glibc configure script doesn't properly use LDFLAGS all the time. export CC="$(tc-getCC ${CTARGET}) ${LDFLAGS}" einfo " $(printf '%15s' 'Manual CC:') ${CC}" + + # Some of the tests are written in C++, so we need to force our multlib abis in, bug 623548 + export CXX="$(tc-getCXX ${CTARGET}) $(get_abi_CFLAGS)" + einfo " $(printf '%15s' 'Manual CXX:') ${CXX}" + echo local myconf=() -- cgit v1.2.3-65-gdbad