From 428b8fd03a7f8339e75f5cf9e6b1db61fbbd6575 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 3 Oct 2012 17:44:05 +0000 Subject: [PATCH] No longer use RPATH for "/usr/lib" --- doc/scripts/pkgconfig.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/doc/scripts/pkgconfig.sh b/doc/scripts/pkgconfig.sh index cf0274f..e25756c 100755 --- a/doc/scripts/pkgconfig.sh +++ b/doc/scripts/pkgconfig.sh @@ -100,12 +100,15 @@ while [ $# -gt 0 ]; do fi #portability - RPATH="-Wl,-rpath-link,\${libdir} -Wl,-rpath,\${libdir}" - case $(uname -s) in - Darwin) - RPATH="-Wl,-rpath,\${libdir}" - ;; - esac + RPATH= + if [ "$PREFIX" != "/usr" ]; then + RPATH="-Wl,-rpath-link,\${libdir} -Wl,-rpath,\${libdir}" + case $(uname -s) in + Darwin) + RPATH="-Wl,-rpath,\${libdir}" + ;; + esac + fi #create $DEBUG $SED -e "s;@PREFIX@;$PREFIX;" \