Use -rpath instead of -R
This commit is contained in:
ridiculousfish 2012-07-11 17:18:49 -07:00
parent 4ee1cc3b37
commit 1cd61952b0

View file

@ -120,7 +120,7 @@ for i in /usr/pkg /sw /opt /opt/local /usr/local; do
AC_MSG_CHECKING([for $i/lib library directory])
if test -d $i/lib; then
AC_MSG_RESULT(yes)
LDFLAGS="$LDFLAGS -L$i/lib/ -R$i/lib/"
LDFLAGS="$LDFLAGS -L$i/lib/ -Wl,-rpath,$i/lib/"
else
AC_MSG_RESULT(no)
fi