User forums > Using Code::Blocks

How to pass -Wl,--rpath=$ORIGIN/blabla/ to the linker

(1/2) > >>

oBFusCATed:
Is this currently possible?
From what I've tried I can conclude that it isn't, because CB tries to replace the $ORIGIN with the value of the env var ORIGIN.
Can I disable this just for this case?

Alpha:
Try -Wl,--rpath=$$ORIGIN/blabla/.  I think that worked for me last time (but I am not sure if it currently works).

oBFusCATed:
No, it doesn't work. At least in rev 8888.

Jenna:
Did you read this: http://forums.codeblocks.org/index.php/topic,16466.msg112453.html#msg112453
and my answer ?


--- Code: ----Wl,--rpath=\\$$$ORIGIN/blabla/
--- End code ---

Could you try if this works ?

oBFusCATed:
OK, so double '\' + tripple '$' is the only string that works :)
Can we make it better?
Anyone care to explain why all those characters are needed?

Navigation

[0] Message Index

[#] Next page

Go to full version