Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-08-20 11:17:06

Hi all,

I'm creating an application that embeds python. Since python is
multi-threaded, my Jamfile looks like this:

libpython : : <name>python2.3 <search>my_path ;
exe my_app : my_source.cpp libpython : <threading>multi ;

The <threading>multi property will add '-pthread' to the command line
(which will gcc to link with But now I also need to add
a whole list of additional system libraries (that are needed for python)
to the link-line: "-lnsl -ldl -lreadline -ltermcap -lpthread -lutil -lm

In bjamv1 I did this using the find-library and library-path properties:

SYS_LIB_PATH = my_path ;
SYS_LIBS = nsl dl readline termcap pthread util m g2c ;
exe my_app : my_source.cpp
: <library-path>$(SYS_LIB_PATH)

Additionally I knew how to add an option to the linkline (if necessary
even specifying the flag per compiler like the '--export-dynamic' above).

Anyone knows how to add a list of external libraries and flags to the
link line in bjamv2 ? Thanks a lot in advance!



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at