[Ace-users] [ace-users] MPC: how to add linker flags

Adam Mitz mitza at ociweb.com
Wed Nov 21 09:51:16 CST 2007


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.


Thanks,
Adam Mitz
Software Engineer
Object Computing, Inc.



More information about the Ace-users mailing list