sys-libs/glibc: Fix part of the test build system, bug 623548
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 10 Sep 2017 10:07:40 +0000 (12:07 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 10 Sep 2017 10:07:56 +0000 (12:07 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

sys-libs/glibc/glibc-2.26-r1.ebuild

index 9876c073967f3abfcf876c00a2db9d71568ae29b..fbe7444f9488d5188cf224bc880079658a3eb70c 100644 (file)
@@ -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=()