-Wl, -rflags not being passed correcly to G++ [message #1693248] |
Wed, 22 April 2015 16:02 |
Renato Mendes Messages: 1 Registered: April 2015 |
Junior Member |
|
|
Hi,
I want to add a rpath to my executables to look locally for the shared library in order to avoid using the LD_LIBRARY_PATH in my environment.
To do it I need the following flags at the g++ compiler
-Wl,-rpath=/home/myself/lib
So, I went to Project->Properties->C/C++Build->Settings->GCC C++ Compiler->Miscellaneout and on 'Other Flags':
OtherFlags -> -c -f-messge-length= -Wl,-rpath=/home/mylibs
That was supposed to work, but when I build I get an error, as Eclipse is passing the arguments with spaces to g++:
g++ .... -Wl,<SPACE>-rpath =/home/mylibs ...
on that way, g++ says it can´t recognize the -rpath path....
Is there a workaround for this ??? Any help appreciated.
|
|
|
Powered by
FUDForum. Page generated in 0.03801 seconds