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
commit9f3ee838b9ff694c1d77c90fae392c1fd45a6bab (patch)
treec69652e1224889656b659d5274cbbd2eeb0cd306
parentImprove and centralise transaction handling logic (diff)
downloadlibdbpp-mysql-9f3ee838b9ff694c1d77c90fae392c1fd45a6bab.tar.bz2
libdbpp-mysql-9f3ee838b9ff694c1d77c90fae392c1fd45a6bab.tar.xz
libdbpp-mysql-9f3ee838b9ff694c1d77c90fae392c1fd45a6bab.zip
Partially tested global visibility hidden in all projects
-rw-r--r--Jamroot.jam8
-rw-r--r--libmysqlpp/Jamfile.jam1
2 files changed, 4 insertions, 5 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/libmysqlpp/Jamfile.jam b/libmysqlpp/Jamfile.jam
index 5bb9c2e..c49b085 100644
--- a/libmysqlpp/Jamfile.jam
+++ b/libmysqlpp/Jamfile.jam
@@ -14,7 +14,6 @@ lib dbpp-mysql :
<library>adhocutil
<library>boost_date_time
<library>boost_system
- <cflags>-fvisibility=hidden
: :
<include>.
<library>mysqlclient