[issue36081] Cannot set LDFLAGS containing $

Christian Heimes report at bugs.python.org
Sat Mar 2 06:46:32 EST 2019


Christian Heimes <lists at cheimes.de> 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,$ORIGIN/../lib
$ echo LDFLAGS=-Wl,-rpath,"$ORIGIN/../lib"
LDFLAGS=-Wl,-rpath,/origin/../lib

----------
nosy: +christian.heimes

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36081>
_______________________________________


More information about the Python-bugs-list mailing list