Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-11-09 17:24:54


In following jamfile libjpeg has no explicit dependency on libz
(although it should). However I remarked that for the link-line for an
executable the first library that is described in the source list (which
is in this case libz) is put last and the last in the source list is put
first.

<Jamfile>
lib libz : : <file>/usr/lib/libz.a ;
lib libjpeg : : <file>/usr/lib/libjpeg.a ;

exe bla : libz libjpeg ;
</Jamfile>

So generally writing

exe bla : lib1 lib2 lib3 lib4 ;

retults in the link-line:

ld lib4 lib3 lib2 lib1 -o bla ;

Is this intentional or ... ?

 


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