summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-01-24 21:09:32 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2016-01-24 21:09:32 +0000
commit3c081fa1a3c32a1e199bc18d4c8f08db35e4a8c1 (patch)
treebefd9619c3605b647040f4bf9c0eb652dea5622c
parentAdd missing header (diff)
downloadlibdbpp-3c081fa1a3c32a1e199bc18d4c8f08db35e4a8c1.tar.bz2
libdbpp-3c081fa1a3c32a1e199bc18d4c8f08db35e4a8c1.tar.xz
libdbpp-3c081fa1a3c32a1e199bc18d4c8f08db35e4a8c1.zip
Partially tested global visibility hidden in all projects
-rw-r--r--Jamroot.jam8
-rw-r--r--libdbpp/Jamfile.jam2
2 files changed, 4 insertions, 6 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index cc16698..f42f929 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -8,13 +8,13 @@ variant coverage : debug ;
project
: requirements
- <variant>release:<cflags>"-std=c++1y"
+ <variant>release:<cflags>"-std=c++1y -fvisibility=hidden"
<variant>release:<linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
- <variant>debug:<cflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y"
+ <variant>debug:<cflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y -fvisibility=hidden"
<variant>debug:<linkflags>"-Wl,-z,defs,--warn-once"
- <variant>coverage:<cflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y --coverage"
+ <variant>coverage:<cflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y --coverage -fvisibility=hidden"
<variant>coverage:<linkflags>"-Wl,-z,defs,--warn-once --coverage"
- <variant>component:<cflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y -fPIC"
+ <variant>component:<cflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y -fPIC -fvisibility=hidden"
<variant>component:<linkflags>"-Wl,-z,lazy,--warn-once,-fPIC"
;
diff --git a/libdbpp/Jamfile.jam b/libdbpp/Jamfile.jam
index bfa58b4..cf116c5 100644
--- a/libdbpp/Jamfile.jam
+++ b/libdbpp/Jamfile.jam
@@ -19,7 +19,6 @@ lib dbppcore :
<library>boost_system
<library>boost_thread
<library>boost_filesystem
- <cflags>-fvisibility=hidden
<include>.
: :
<include>.
@@ -35,7 +34,6 @@ lib dbpptestcore :
<define>BOOST_TEST_DYN_LINK
<library>dbppcore
<library>boost_utf
- <cflags>-fvisibility=hidden
: :
<include>.
;