build with visibility=hidden by default on gcc and llvm

This commit is contained in:
Arvid Norberg 2012-02-16 06:14:19 +00:00
parent 71c7956645
commit 238622c3d1
1 changed files with 6 additions and 3 deletions

View File

@ -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