diff --git a/common/hooks/post-install/06-prepare-32bit.sh b/common/hooks/post-install/06-prepare-32bit.sh index 8dacfd4b5a9..67705a4e8df 100644 --- a/common/hooks/post-install/06-prepare-32bit.sh +++ b/common/hooks/post-install/06-prepare-32bit.sh @@ -53,8 +53,8 @@ hook() { # Switch pkg-config files to lib32. if [ -d ${destdir32}/usr/lib32/pkgconfig ]; then - sed -e 's,/usr/lib,/usr/lib32,g' \ - -e 's,${exec_prefix}/lib,${exec_prefix}/lib32,g' \ + sed -e 's,/usr/lib$,/usr/lib32,g' \ + -e 's,${exec_prefix}/lib$,${exec_prefix}/lib32,g' \ -i ${destdir32}/usr/lib32/pkgconfig/*.pc fi elif [ "$lib32mode" = "full" ]; then