From 1cd61952b07cfff82fe2bdcd6b6bc2fecaf3914e Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 11 Jul 2012 17:18:49 -0700 Subject: [PATCH] Fix for https://github.com/fish-shell/fish-shell/issues/223 Use -rpath instead of -R --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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