Rolf Eike Beer added the comment:
No, it's not. $ORIGIN is a special value that must be literally in the RPATH
(i.e. in the ELF), so that the binary is relocatable and will looks for the
libraries relative to it's location.
I wonder if I could do "export ORIGIN='$ORIGIN'" instead, so the exp
Christian Heimes added the comment:
There is a simpler solution. How about you use double quotes instead of single
quotes and let the shell expand the variable before you pass it down into the
process?
$ export ORIGIN=/origin
$ echo LDFLAGS=-Wl,-rpath,'$ORIGIN/../lib'
LDFLAGS=-Wl,-rpath,$OR
New submission from Rolf Eike Beer :
My use case is: LDFLAGS=-Wl,-rpath,'$ORIGIN/../lib'
This works fine for everything build directly by the Makefile, but for
everything that is build through the python distutils this breaks. This is not
an issue of the python side, it happens because the Ma