|
Boost-Build : |
From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-08-23 09:32:15
Vladimir Prus wrote:
>
> The possible variants are:
>
> local libs = nsl dl readline ;
>
> exe my_app : my_source.cpp [ lib $(libs) : : <search>$(SYS_LIB_PATH) ] ;
>
> and:
>
> lib $(libs) : : <search>$(SYS_LIB_PATH) ;
> exe my_app : my_source.cpp $(libs) ;
>
> When the 'lib' rule is invoked with no sources (meaning it's searched
> library), several names are ok.
>
OK, thanks. How can I now force all my exe's to link with all 'libs'
(using the project rule).
I tried in my top-Jamfile:
<Jamfile>
# get values of MY_SYSTEM_* as defined in my user-config.jam
LIBS = [ modules.peek : MY_SYSTEM_LIBS ] ;
LIB_PATH = [ modules.peek : MY_SYSTEM_PATH ] ;
lib $(LIBS) : : <search>$(LIB_PATH) ;
project
: requirements
<include>$(INCLUDE_PATH)
<library>$(LIBS)
;
</Jamfile>
with my user-config.jam like this
<user-config.jam>
modules.poke : MY_SYSTEM_LIBS : readline pthread m g2c ;
modules.poke : MY_SYSTEM_PATH : /usr/local/lib ;
</user-config.jam>
But bjam now gives me following error :
error: Unable to find file or target named
error: 'readline'
error: referred from project at
error: '../../../modules/utilities/test'
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