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
commit46acdb5b49f91d5f243c3f6d71fae86f8f4bf369 (patch)
tree9dcf1b58a077a20c5d38b9cf737cadd5f05ad27d
parentUse new dryice interface for proxy lookup (diff)
downloadmythfs-46acdb5b49f91d5f243c3f6d71fae86f8f4bf369.tar.bz2
mythfs-46acdb5b49f91d5f243c3f6d71fae86f8f4bf369.tar.xz
mythfs-46acdb5b49f91d5f243c3f6d71fae86f8f4bf369.zip
Partially tested global visibility hidden in all projects
-rw-r--r--Jamroot.jam8
-rw-r--r--mythfs/Jamfile.jam5
2 files changed, 4 insertions, 9 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/mythfs/Jamfile.jam b/mythfs/Jamfile.jam
index ef3532b..25d7fb3 100644
--- a/mythfs/Jamfile.jam
+++ b/mythfs/Jamfile.jam
@@ -16,11 +16,6 @@ lib boost_system ;
lib boost_thread ;
lib boost_date_time ;
-project
- : requirements
- <cflags>"-fvisibility=hidden"
- ;
-
build-project service ;
build-project unittests ;