4 ms·
How? Maybe this should be better documented & recommended. I suppose at some point you're just statically linking with more steps - though for a problem like th
by josephg 4y ago
How? Maybe this should be better documented & recommended. I suppose at some point you're just statically linking with more steps - though for a problem like this it might be worth it.
- xioxox 4y agoSee the ELF rpath, which can be set by the linker. This can be modified after using patchelf.
- rkeene2 4y ago$ORIGIN has been pretty well-known and documented for a very long time
- yrro 4y agohttps://sourceware.org/binutils/docs-2.40/ld/Options.html#index-runtime-library-search-path https://sourceware.org/binutils/docs-2.40/ld/Options.html#in...
- ywei3410 4y agoThe other comments have already covered the how, but I'd like to add that the mechanism used extensively in Nix [1]. [1] https://nixos.org/ https://nixos.org/