aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-11-24 17:08:21 -0500
committerMike Frysinger <vapier@gentoo.org>2009-11-24 17:08:21 -0500
commita3bf3afd55c8a1e24a7980e9862baf6f4c52e1b7 (patch)
tree0f0a26cbde521f824b216641d5d4b518148c26fa /wrappers/cross-fix-root
parentcross-emerge: autodetect emerge-CHOST (diff)
downloadcrossdev-a3bf3afd55c8a1e24a7980e9862baf6f4c52e1b7.tar.gz
crossdev-a3bf3afd55c8a1e24a7980e9862baf6f4c52e1b7.tar.bz2
crossdev-a3bf3afd55c8a1e24a7980e9862baf6f4c52e1b7.zip
cross-fix-root: handle packages that set exec_prefix directly to /usr
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'wrappers/cross-fix-root')
-rwxr-xr-xwrappers/cross-fix-root2
1 files changed, 1 insertions, 1 deletions
diff --git a/wrappers/cross-fix-root b/wrappers/cross-fix-root
index b440c48..08319d3 100755
--- a/wrappers/cross-fix-root
+++ b/wrappers/cross-fix-root
@@ -48,7 +48,7 @@ fi
if [ -d "${LIBDIR}/pkgconfig" ] ; then
find "./${LIBDIR}/pkgconfig/" ./usr/share/pkgconfig/ -name '*.pc' -print0 | xargs -0 -r \
- sed -i "/^prefix=/s:=.*:='${SYSROOT}/usr':"
+ sed -i -r -e "/^(exec_)?prefix=/s:=/usr\$:='${SYSROOT}/usr':"
fi
if [ -d usr/bin ] ; then