4 ms·
RPATH is very nice, but it's a huge pain to set in Makefiles because you have to reliably escape the "$ORIGIN"
by pjc50 9y ago
RPATH is very nice, but it's a huge pain to set in Makefiles because you have to reliably escape the "$ORIGIN"
- Spivak 9y ago(Don't do this) You could patch the binary after compilation with elfpatch. Also, test: echo "\$$ORIGIN" outputs $ORIGIN. $$ translates to a literal dollar sign. \ escapes the dollar sign in the shell.
- binarycrusader 9y agoYou can use elfedit instead, but really, it's not that much of a pain to just do it right in the first place.