The ld -rpath switch means a different thing on OS X

private/hcvcastro/forking
Tor Lillqvist 2015-05-04 20:52:05 +03:00
parent 4ecc431159
commit 8a3dfa4936
1 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,11 @@ AS_IF([test -n "$with_poco_includes"],
[CPPFLAGS="$CPPFLAGS -I${with_poco_includes}"])
AS_IF([test -n "$with_poco_libs"],
[LDFLAGS="$LDFLAGS -L${with_poco_libs} -Wl,-rpath,${with_poco_libs}"])
[LDFLAGS="$LDFLAGS -L${with_poco_libs}"])
AS_IF([test `uname -s` = Linux],
[AS_IF([test -n "$with_poco_libs"],
[LDFLAGS="$LDFLAGS -Wl,-rpath,${with_poco_libs}"])])
AS_IF([test `uname -s` != Darwin],
[AC_SEARCH_LIBS([dlopen],