3 ms·
You can work around that by using relative linker paths (rpaths). See 'install_name_tool -add_rpath' (to add an rpath search path to a library or executable fo
by jamesfmilne 4y ago
You can work around that by using relative linker paths (rpaths).
See 'install_name_tool -add_rpath' (to add an rpath search path to a library or executable for finding other libraries) and 'install_name_tool -id' (to change the ID of the library to be '@rpath/<name of library>', ie:
install_name_tool -add_rpath @loader_path/../lib <path-to-library>
install_name_tool -id @rpath/<name-of-library> <path-to-library>
Works with Frameworks too.
Agree it is a PITA to setup though.