Set the install_name for the macOS dylib

Just like on Linux where one sets a shared library's soname, one should
set a macOS dylib's install_name, but unlike on Linux, on macOS the
install_name should be the absolute path where the library will be
installed.

Fixes #40
This commit is contained in:
Ryan Schmidt
2020-05-08 23:03:05 -05:00
parent fb15f76d45
commit 700ff2c459

View File

@@ -120,7 +120,7 @@ case $host in
*-apple*)
AC_SUBST( sharedlib, ["libstk.dylib"] )
AC_SUBST( sharedname, ["${basesharedname}.dylib"] )
AC_SUBST( libflags, ["-dynamiclib -o ${basesharedname}.dylib"] )
AC_SUBST( libflags, ["-dynamiclib -install_name \$(libdir)/${basesharedname}.dylib -o ${basesharedname}.dylib"] )
esac
if test $realtime = yes; then