sys-libs/glibc: fix strip path for cross-compiler's glibc
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 9 Apr 2018 22:36:03 +0000 (23:36 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 9 Apr 2018 22:37:58 +0000 (23:37 +0100)
Noticed as warnings on non-existing path when installing
    =cross-powerpc64le-foo-linux-gnu/glibc-2.27-r1

Package-Manager: Portage-2.3.28, Repoman-2.3.9

sys-libs/glibc/glibc-2.27-r1.ebuild
sys-libs/glibc/glibc-9999.ebuild

index 523de8fcfa8dee0ed71118547e447f8318df6092..017249c804fe323127d508e936f94eaa4e45f864 100644 (file)
@@ -1324,7 +1324,7 @@ src_strip() {
        # if user has stripping enabled and does not have split debug turned on,
        # then leave the debugging sections in libpthread.
        if ! has nostrip ${FEATURES} && ! has splitdebug ${FEATURES} ; then
-               ${STRIP:-${CTARGET}-strip} --strip-debug "${ED}"/*/libpthread-*.so
+               ${STRIP:-${CTARGET}-strip} --strip-debug "${ED}"$(alt_prefix)/*/libpthread-*.so
        fi
 }
 
index 24e9f43bde8fcfd254828f564a6c191f8a059d18..100724cc8416c8194599c418346f098a4c9eed2b 100644 (file)
@@ -1324,7 +1324,7 @@ src_strip() {
        # if user has stripping enabled and does not have split debug turned on,
        # then leave the debugging sections in libpthread.
        if ! has nostrip ${FEATURES} && ! has splitdebug ${FEATURES} ; then
-               ${STRIP:-${CTARGET}-strip} --strip-debug "${ED}"/*/libpthread-*.so
+               ${STRIP:-${CTARGET}-strip} --strip-debug "${ED}"$(alt_prefix)/*/libpthread-*.so
        fi
 }