fix DLL export issue on windows
This commit is contained in:
parent
7f19e0d976
commit
b03e99ab40
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
* fixed DLL export issue on windows (when building a shared library linking statically against boost)
|
||||||
* fixed FreeBSD build
|
* fixed FreeBSD build
|
||||||
* fixed web seed performance issue whith pieces > 1 MiB
|
* fixed web seed performance issue whith pieces > 1 MiB
|
||||||
* fixed unchoke logic when using web seeds
|
* fixed unchoke logic when using web seeds
|
||||||
|
|
7
Jamfile
7
Jamfile
|
@ -587,6 +587,13 @@ lib torrent
|
||||||
<define>BOOST_THREAD_USE_LIB
|
<define>BOOST_THREAD_USE_LIB
|
||||||
<threading>multi
|
<threading>multi
|
||||||
<link>shared:<define>TORRENT_BUILDING_SHARED
|
<link>shared:<define>TORRENT_BUILDING_SHARED
|
||||||
|
|
||||||
|
# on windows, when linking statically against asio
|
||||||
|
# but producing a DLL, everything inside the DLL needs
|
||||||
|
# to declare the symbol as being exported
|
||||||
|
<link>shared,<boost-link>static:<define>BOOST_ASIO_SOURCE
|
||||||
|
<link>shared,<boost-link>static:<define>BOOST_SYSTEM_SOURCE
|
||||||
|
|
||||||
<dht-support>on:<source>src/kademlia/$(KADEMLIA_SOURCES).cpp
|
<dht-support>on:<source>src/kademlia/$(KADEMLIA_SOURCES).cpp
|
||||||
<dht-support>logging:<source>src/kademlia/$(KADEMLIA_SOURCES).cpp
|
<dht-support>logging:<source>src/kademlia/$(KADEMLIA_SOURCES).cpp
|
||||||
<conditional>@building
|
<conditional>@building
|
||||||
|
|
|
@ -69,7 +69,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
// backwards compatibility with older versions of boost
|
// backwards compatibility with older versions of boost
|
||||||
#if !defined BOOST_SYMBOL_EXPORT && !defined BOOST_SYMBOL_IMPORT
|
#if !defined BOOST_SYMBOL_EXPORT && !defined BOOST_SYMBOL_IMPORT
|
||||||
# ifdef _MSC_VER
|
# if defined _MSC_VER || defined __MINGW32__
|
||||||
# define BOOST_SYMBOL_EXPORT __declspec(dllexport)
|
# define BOOST_SYMBOL_EXPORT __declspec(dllexport)
|
||||||
# define BOOST_SYMBOL_IMPORT __declspec(dllimport)
|
# define BOOST_SYMBOL_IMPORT __declspec(dllimport)
|
||||||
# elif __GNU__ >= 4
|
# elif __GNU__ >= 4
|
||||||
|
|
Loading…
Reference in New Issue