@rpath is not even needed as install_name

It is possible to set it to the path where the library will be installed
and still have in-tree applications work by setting DYLD_LIBRARY_PATH.
Even if the library is already installed, it will use the in-tree
library if DYLD_LIBRARY_PATH is set.
This commit is contained in:
Jonathan Schleifer 2014-05-15 17:52:30 +02:00
parent 45b155c8f9
commit d74fc957f6

View file

@ -120,7 +120,7 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
darwin*)
AC_MSG_RESULT(Darwin)
LIB_CFLAGS='-fPIC -DPIC'
LIB_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR} -Wl,-install_name,@rpath/$''@'
LIB_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR} -Wl,-install_name,${libdir}/$''@'
LIB_PREFIX='lib'
LIB_SUFFIX='.dylib'
LDFLAGS_RPATH='-Wl,-rpath,${libdir}'