From a3bf3afd55c8a1e24a7980e9862baf6f4c52e1b7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 24 Nov 2009 17:08:21 -0500 Subject: cross-fix-root: handle packages that set exec_prefix directly to /usr Signed-off-by: Mike Frysinger --- wrappers/cross-fix-root | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wrappers/cross-fix-root') 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 -- cgit v1.2.3-65-gdbad