libluajit is not linked with rpath on MacOSX
koraykv opened this issue · 0 comments
On Mac, 10.8.5, libluajit is not linked with rpath so qlua fails to run without specifying DYLD_LIBRARY_PATH.
nevis:~ koray$ otool -L ~/usr/local.concept.split/lib/libqlua.dylib
/Users/koray/usr/local.concept.split/lib/libqlua.dylib:
@executable_path/../lib/libqlua.dylib (compatibility version 0.0.0, current version 0.0.0)
@executable_path/../lib/libqtlua.dylib (compatibility version 0.0.0, current version 0.0.0)
libluajit.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/readline/lib/libreadline.6.2.dylib (compatibility version 6.0.0, current version 6.2.0)
/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
/usr/local/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.4)
/usr/local/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.4)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
nevis:~ koray$ otool -L ~/usr/local.concept.split/bin/qlua
/Users/koray/usr/local.concept.split/bin/qlua:
@executable_path/../lib/libqlua.dylib (compatibility version 0.0.0, current version 0.0.0)
@executable_path/../lib/libqtlua.dylib (compatibility version 0.0.0, current version 0.0.0)
libluajit.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/readline/lib/libreadline.6.2.dylib (compatibility version 6.0.0, current version 6.2.0)
/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
/usr/local/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.4)
/usr/local/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.4)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)