[Ace-users] [ace-users] MPC: how to add linker flags
Stefan Naewe
nospam at please.net
Wed Nov 21 14:58:07 CST 2007
Adam Mitz schrieb:
> Hi Stefan,
>
> Stefan Naewe wrote:
>> ACE 5.6.1
>> MPC 3.5.18
>> Debian Linux
>>
>> I simply want to pass flags to the linker run using MPC.
>> In my case it's '-Wl,-rpath $(ACE_ROOT)/lib' because I don't want to
>> fiddle with LD_LIBRARY_PATH
>>
>> I tried:
>>
>> <--- SNIP --->
>> project : aceexe {
>> exename = rawsock_s
>> includes += $(HOME)/src/boost_1_34_1
>> linkflags = -Wl,-rpath $(ACE_ROOT)/lib
>> Source_Files {
>> rawsock_s.cpp
>> }
>> }
>> <--- SNAP --->
>>
>> But 'mwc.pl -type gnuace file.mwc' gives me:
>> ....
>> rawsock_s.mpc: line 6:
>> ERROR: Invalid addition name: linkflags
>> ....
>>
>> How can I achieve this.
>
> Take a look at this FAQ entry from the MPC FAQ:
> http://www.ociweb.com/products/mpc/faq.html#016
>
> Instead of specific(make), use specific(gnuace) and instead of
> compile_flags you want linkflags.
Great! That did the job!
Thanks for pointing me to the FAQ (I've seen it before, but simply
forgot its existence...).
Thanks,
Stefan
--
-----------------------------------------------------------------
Stefan Naewe (stefan at naewe dot de) GNU/Linux User #165035
It's most certainly GNU/Linux, not Linux. Read more at
http://www.gnu.org/gnu/why-gnu-linux.html.
-----------------------------------------------------------------
More information about the Ace-users
mailing list