Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-01-24 15:52:21


On Thursday 24 January 2008 02:03:14 Sandeep Gupta wrote:
> Hi,
> How to specify compile and link options in bjam. Specifically I want to
> set "-i_dynamic" and "-shared" options during compile and link time. I
> wasn't able to find any direct answers.
> I did create user-config.jam with these lines without any success:
>
> //user-config.jam
> using intel : : : <linkflags>-i_dynamic <linkflags>-shared-intel

Well, per

   http://boost.org/boost-build2/doc/html/bbv2/reference/tools.html#bbv2.reference.tools.compiler.intel

this almost should work, applying those flags to all linker invocation. But
you'd need

   using intel : : : <linkflags>"-i_dynamic -shared-intel" ;

If this does not work, in Boost.Build M12, can you explain how exactly it does not work?

>
> I even tried using linkflags in the exe module as shown below:
>
> exe server : Server.cpp .
> :
> ...
>
> <linkflags>-shared-intel
> <linkflags>-i_dynamic
> ;

This should also work.

- Volodya


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