|
Boost-Build : |
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-03-01 23:23:58
Jody Hagins wrote:
>
> At least on linux, dlopen and friends require "-ldl" for proper linking.
> However, this causes problems on windows, where LoadLibrary apparantly
> is linked without having to specify a library. How can I modify this
> part of the Jamfile so it works right on all platforms?
>
>
> run dll_test.cpp <lib>../../test/build/boost_unit_test_framework
> : # ARGS
> : # INPUT FILES
> <dll>tidll
> : # REQUIREMENTS
> <linkflags>"-ldl"
> : # TEST NAME
> dll_test
> : # DEFAULT BUILDS
> debug
> ;
Replace the '<linkflags>"-ldl"' with:
[ cond [ MATCH .*(linux).* : $(JAMUNAME:L) ] : <linkflags>"-ldl" ]
> Thanks!
Welcome :-)
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
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