Index: Jamfile.v2 =================================================================== RCS file: /cvsroot/boost/boost/libs/iostreams/build/Jamfile.v2,v retrieving revision 1.5.2.2 diff -u -r1.5.2.2 Jamfile.v2 --- Jamfile.v2 17 Oct 2006 12:51:44 -0000 1.5.2.2 +++ Jamfile.v2 28 Feb 2007 17:14:00 -0000 @@ -32,7 +32,7 @@ # main target and returns it. If compression is disabled, returns nothing. # The 'sources' argument is the list of sources names for the library, # which will be used if building the library. -rule create-library ( library-name : windows-name unix-name : sources + ) +rule create-library ( library-name : windows-name unix-name : sources + : requirements * ) { local LIB = $(library-name:U) ; if ! $(library-name) in zlib bzip2 @@ -68,13 +68,14 @@ $(LIB)_INCLUDE = $($(LIB)_SOURCE) ; } - # Should be use prebuilt library or built it owselfs? + # Should we use prebuilt library or build it ourselves? if $($(LIB)_SOURCE) { return [ lib boost_$(library-name) : $($(LIB)_SOURCE)/$(sources).c : $($(LIB)_INCLUDE) $(LIB:L) + $(requirements) : : $($(LIB)_INCLUDE) ] ; @@ -115,7 +116,8 @@ local sources ; local z = [ create-library zlib : zll z : adler32 compress - crc32 deflate gzio infback inffast inflate inftrees trees uncompr zutil ] ; + crc32 deflate gzio infback inffast inflate inftrees trees uncompr zutil : + shared:ZLIB_DLL ] ; if $(z) { @@ -124,7 +126,8 @@ local bz2 = [ create-library bzip2 : libbz2 bz2 : blocksort bzlib compress crctable decompress huffman - mk251 randtable ] ; + mk251 randtable : + shared:$(BZIP2_SOURCE)/libbz2.def ] ; if $(bz2) {