profiles/p/l-s/profile.bashrc: update sed for ppc64.
authorBenda Xu <heroxbd@gentoo.org>
Sun, 29 Jan 2017 12:31:38 +0000 (21:31 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Thu, 9 Feb 2017 04:47:37 +0000 (13:47 +0900)
Credit: François Bissey
Reference: https://archives.gentoo.org/gentoo-alt/message/d890ad55f3ac96f4db5d7f8291351834

profiles/prefix/linux-standalone/profile.bashrc

index b46c49efdc6c0da08ef9ee0e7292778934c467fd..4b39a3e25d5b6e8b288dec5f44761d86e63fb0e6 100644 (file)
@@ -11,7 +11,7 @@ if [[ ${CATEGORY}/${PN} == sys-devel/gcc && ${EBUILD_PHASE} == configure ]]; the
     einfo "Prefixifying dynamic linkers..."
     for h in gcc/config/*/*linux*.h; do
        ebegin "  Updating $h"
-       sed -i -r "s,(_DYNAMIC_LINKER.*\")(/lib),\1${EPREFIX}\2," $h
+       sed -i -r "/_DYNAMIC_LINKER/s,([\":])(/lib),\1${EPREFIX}\2,g" $h
        eend $?
     done