Boost logo

Boost-Build :

Subject: Re: [Boost-build] linkflags not working with intel-linux toolset?
From: John Maddock (john_at_[hidden])
Date: 2009-01-21 11:00:15


>> bjam linkflags=-lfoo gcc intel
>>
>> Then the gcc build gets the -lfoo added, but the intel build doesn't,
>> any ideas anyone?
>
> What's the equivalent of "bjam linkflags=-lfoo" in a Jamfile?
>
> In other words, what has to be add to a Jamfile to say "if running the
> gcc toolset on linux, add -lfoo to the linker command line"?

Normally:

<linkflags>-lfoo

in the target requirements, or in the case you're thinking of

<target-os>linux:<linkflags>-lfoo

But while that works for gcc, the Intel toolset ignores the linkflags
command, hense my post,

John.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk