commit:     0985a8297b958391afff2e607a2ec7240cad050a
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 10 10:07:40 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Sep 10 10:07:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0985a829

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 9876c073967..fbe7444f948 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=()

Reply via email to