Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-03-14 02:23:13


On Tuesday 13 March 2007 21:35, Jorge Suit Perez Ronda wrote:
> Hello I'm trying to create a static lib made of object files which are
> compiled with -fPIC
>
> I'm trying this:
>
> lib mylib : source.cc
> : <cxxflags>-fPIC
>
> when I invoke
>
> 'bjam -d2 intel link=static'
>
> it does not add the compiler option I've requested at requirements

Seems to be bug in intel-linux.jam, I'll look into this.

>
> it seems to be a problem related to intel toolset because if I invoke
>
> 'bjam -d2 gcc link=static'
>
> then -fPIC is used as requested.
>
> Another problem is related to <compileflags>, for both gcc and intel
>
> lib mylib : source.cc
> : <compileflags>-fPIC
> ;
>
> complains:
>
> /usr/local/src/Build/boost-build/build/feature.jam:281: in
> validate-feature from module feature
> error: unknown feature "<compileflags>"

Indeed, I cannot find the <compileflags> feature in the docs:

        http://boost.org/boost-build2/doc/html/bbv2/advanced/builtins/features.html

and there's no such feature. <compileflags> can only be used when initializing
a toolset, and it's a special context. This is confusing, but that's the way it
is for now.

- 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