From b078cd54164e110a949d353c009552434adef1ad Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 25 Dec 2010 07:24:00 +0000 Subject: [PATCH] some jamfile fixes for static linking --- Jamfile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Jamfile b/Jamfile index 5f9597206..fad45554e 100755 --- a/Jamfile +++ b/Jamfile @@ -50,8 +50,15 @@ rule linking ( properties * ) } else { - result += crypto ssl ; + result += crypto ssl z ; } + + if linux in $(properties) + { + # linker library on linux, required when using openssl +# result += dl ; + } + } # gcrypt libraries, if enabled @@ -190,14 +197,6 @@ rule building ( properties * ) if ! ( off in $(properties) ) { result += src/pe_crypto.cpp ; - - if linux in $(properties) - && openssl in $(properties) - { - # linker library on linux, required when using openssl - result += /usr/lib/libdl.so ; - } - } return $(result) ; @@ -342,8 +341,10 @@ lib boost_system : : boost_system ; # openssl on linux/bsd/macos etc. lib gcrypt : : gcrypt shared /opt/local/lib ; -lib crypto : : crypto /lib ; +lib z : : shared z /lib ; +lib crypto : : crypto /lib z ; lib ssl : : ssl shared crypto ; +lib dl : : shared /libdl.so /lib ; # time functions used on linux require librt lib librt : : rt shared ;