|
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:
<Jamfile>
libpython : : <name>python2.3 <search>my_path ;
exe my_app : my_source.cpp libpython : <threading>multi ;
</Jamfile>
The <threading>multi property will add '-pthread' to the command line
(which will gcc to link with libpthread.so). 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
-lg2c".
In bjamv1 I did this using the find-library and library-path properties:
<Jamfile>
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)
<find-library>$(SYS_LIBS)
</Jamfile>
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!
toon
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