RejectedSoftware Forums

Sign up

"lflags": ["-rpath=$ORIGIN"] doesn't work

It seems that dub tries to interpret $ORIGIN as a shell variable, and afaict there is no way to escape $ to treat it literally.

Re: "lflags": ["-rpath=$ORIGIN"] doesn't work

Am 18.02.2015 um 04:03 schrieb 岩倉 澪:

It seems that dub tries to interpret $ORIGIN as a shell variable, and afaict there is no way to escape $ to treat it literally.

You should be able to escape a single $ using two consecutive dollar
signs, i.e. "-rpath=$$ORIGIN"". I'll add that to the documentation.

Re: "lflags": ["-rpath=$ORIGIN"] doesn't work

(without the double double quotes)