[Scons-users] Not escaping RPATH correctly

edA-qa mort-ora-y eda-qa at disemia.com
Sat Aug 5 07:50:22 EDT 2017


I'm having an escaping problem with an rpath of $ORIGIN. I'm needing to
do this:

baseEnv['RPATH'] = Literal('\\$$ORIGIN')

I'm not understading two parts of this:

- Why do I need $$?  Doesn't `Literal` ignore $ tokens?
- The need for `\\` is because SCONS is passing this value to the shell
without doing proper escaping. The `\\` gets the sh escape character in
front of the $ sign

-- 
edA-qa mort-ora-y 
http://mortoray.com/

Leaf - the language we always wanted
http://leaflang.org/



More information about the Scons-users mailing list