diff --git a/configure.ac b/configure.ac index 99eb86c3c..3da41794d 100644 --- a/configure.ac +++ b/configure.ac @@ -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