forked from premiere/premiere-libtorrent
build with visibility=hidden by default on gcc and llvm
This commit is contained in:
parent
71c7956645
commit
238622c3d1
9
Jamfile
9
Jamfile
|
@ -341,9 +341,6 @@ feature fpic : off on : composite propagated link-incompatible ;
|
|||
feature.compose <fpic>on : <cflags>-fPIC ;
|
||||
feature.compose <fpic>off : <toolset>darwin:<cflags>-mdynamic-no-pic ;
|
||||
|
||||
feature visibility : default hidden : composite propagated link-incompatible ;
|
||||
feature.compose <visibility>hidden : <cflags>-fvisibility=hidden ;
|
||||
|
||||
# required for openssl on windows
|
||||
lib ssleay32 : : <name>ssleay32 ;
|
||||
lib libeay32 : : <name>libeay32 ;
|
||||
|
@ -543,6 +540,12 @@ lib torrent
|
|||
<dht-support>logging:<source>src/kademlia/$(KADEMLIA_SOURCES).cpp
|
||||
<conditional>@building
|
||||
<boost>system:<cxxflags>$(CXXFLAGS)
|
||||
|
||||
# hide non-external symbols
|
||||
<toolset>darwin:<cflags>-fvisibility=hidden
|
||||
<toolset>gcc:<cflags>-fvisibility=hidden
|
||||
<toolset>llvm:<cflags>-fvisibility=hidden
|
||||
|
||||
$(usage-requirements)
|
||||
|
||||
: # default build
|
||||
|
|
Loading…
Reference in New Issue