diff --git a/src/aclocal.m4 b/src/aclocal.m4 index e8f4b8e76..bb42eb49f 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -402,7 +402,7 @@ case "${host_os}" in PICFLAG='-fPIC -fno-common' SHARED_LDFLAGS="-dynamiclib -flat_namespace -undefined suppress ${LDFLAGS}" BUNDLE_LDFLAGS="-bundle ${LDFLAGS}" - ECL_LDRPATH='' + ECL_LDRPATH='-Wl,-rpath,~A' THREAD_CFLAGS='-D_THREAD_SAFE' THREAD_LIBS='-lpthread' # The GMP library has not yet been ported to Intel-OSX @@ -429,7 +429,7 @@ case "${host_os}" in ECL_GC_DIR=bdwgc fi SONAME="${SHAREDPREFIX}ecl.SOVERSION.${SHAREDEXT}" - SONAME_LDFLAGS="-Wl,-install_name,@libdir\@/SONAME -Wl,-compatibility_version,${PACKAGE_VERSION}" + SONAME_LDFLAGS="-Wl,-install_name,@rpath/SONAME -Wl,-compatibility_version,${PACKAGE_VERSION}" ;; nsk*) # HP Non-Stop platform diff --git a/src/configure b/src/configure index 5e958b43a..0cde7e2b9 100755 --- a/src/configure +++ b/src/configure @@ -5062,7 +5062,7 @@ LSP_FEATURES="(cons :android ${LSP_FEATURES})" PICFLAG='-fPIC -fno-common' SHARED_LDFLAGS="-dynamiclib -flat_namespace -undefined suppress ${LDFLAGS}" BUNDLE_LDFLAGS="-bundle ${LDFLAGS}" - ECL_LDRPATH='' + ECL_LDRPATH='-Wl,-rpath,~A' THREAD_CFLAGS='-D_THREAD_SAFE' THREAD_LIBS='-lpthread' # The GMP library has not yet been ported to Intel-OSX @@ -5089,7 +5089,7 @@ LSP_FEATURES="(cons :android ${LSP_FEATURES})" ECL_GC_DIR=bdwgc fi SONAME="${SHAREDPREFIX}ecl.SOVERSION.${SHAREDEXT}" - SONAME_LDFLAGS="-Wl,-install_name,@libdir\@/SONAME -Wl,-compatibility_version,${PACKAGE_VERSION}" + SONAME_LDFLAGS="-Wl,-install_name,@rpath/SONAME -Wl,-compatibility_version,${PACKAGE_VERSION}" ;; nsk*) # HP Non-Stop platform