rpath for OSX
@@ -8,6 +8,7 @@ export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
if [ `uname` == Darwin ]; then
sed -i.bak 's/-fforce-addr //g' ./configure
sed -i.bak 's/-fforce-addr //g' ./configure.ac
+ export LDFLAGS="${LDFLAGS} -Wl,-rpath,$PREFIX/lib"
fi
./configure --prefix=${PREFIX} --disable-examples --disable-spec
