From d74fc957f6d7a17b68f743dd4fc7992a1c5509dd Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Thu, 15 May 2014 17:52:30 +0200 Subject: [PATCH] @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. --- m4/buildsys.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/buildsys.m4 b/m4/buildsys.m4 index f12dda4..7e860a2 100644 --- a/m4/buildsys.m4 +++ b/m4/buildsys.m4 @@ -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}'