@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:
parent
45b155c8f9
commit
d74fc957f6
1 changed files with 1 additions and 1 deletions
|
@ -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}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue