4 ms·
install_name_tool -change libfoo @executable_path/../libs/libfoo does precisely that. @executable_path is evaluated at runtime.
by PaulDavisThe1st 5y ago
install_name_tool -change libfoo @executable_path/../libs/libfoo
does precisely that. @executable_path is evaluated at runtime.
- kazinator 5y agoI don't see anything like that in the solution I was replying to.
- PaulDavisThe1st 5y agoSure, but it's the standard way to use install_name_tool on macOS to do precisely what you described. The original commenter apparently is not aware of this.
- pvtmert 5y agoI'm aware of that, you can even use @executable_path in @rpath... Since nix stores everything at /nix/store, I didn't want to mess with relative paths... But yeah, macOS apps can ship their own version of libraries thanks to this flexibility.