User forums > Using Code::Blocks
using rpath[solved]
(1/1)
leon:
How do I make code::blocks add an rpath to my binary. I have tried to add -rpath <pathname> in the other linker options box but all I get is a message "g++: unrecognized option '-rpath,'". I have looked through this forum for an answer but most seem to be related to compiling CB itself. Any ideas.
TDragon:
Try "--Wl,-rpath,<pathname>".
leon:
--- Quote from: TDragon on April 08, 2008, 05:54:03 pm ---Try "--Wl,-rpath,<pathname>".
--- End quote ---
Well thanks that got rid of the error message and compilation completes but the path is still not in the binary. I have checked the path and it is right is there anything else that can interfere with this setting.
leon:
-Wl,--rpath -Wl,<path>
worked for me.
Navigation
[0] Message Index
Go to full version