Boost logo

Boost-Build :

From: Jorge Suit Perez Ronda (josp.jorge_at_[hidden])
Date: 2007-03-13 14:35:01


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

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>"
/usr/local/src/Build/boost-build/build/feature.jam:311: in
expand-subfeatures-aux from module feature
/usr/local/src/Build/boost-build/build/feature.jam:373: in
expand-subfeatures from module feature
/usr/local/src/Build/boost-build/build/feature.jam:779: in
feature.expand from module feature
/usr/local/src/Build/boost-build/build/targets.jam:945: in
evaluate-requirements from module targets
/usr/local/src/Build/boost-build/build/targets.jam:1045: in
common-properties2 from module targets
/usr/local/src/Build/boost-build/build/targets.jam:913: in
targets.common-properties from module targets
/usr/local/src/Build/boost-build/build/targets.jam:1194: in
object(typed-target)@74.generate from module object(typed-target)@74
/usr/local/src/Build/boost-build/build/targets.jam:765: in
generate-really from module object(main-target)@79
/usr/local/src/Build/boost-build/build/targets.jam:738: in
object(main-target)@79.generate from module object(main-target)@79
/usr/local/src/Build/boost-build/build-system.jam:401: in load from
module build-system
/usr/local/src/Build/boost-build/kernel/modules.jam:261: in import from
module modules
/usr/local/src/Build/boost-build/kernel/bootstrap.jam:132: in
boost-build from module
/usr/local/src/Build/boost-build/boost-build.jam

best regards,

Jorge


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