From f3aeae6b0a9cbb0b5953efe0c6ca6cc193f637a3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Jan 2016 21:09:32 +0000 Subject: Partially tested global visibility hidden in all projects --- Jamroot.jam | 8 ++++---- netfs/daemon/Jamfile.jam | 2 -- netfs/fuse/Jamfile.jam | 3 --- netfs/ice/Jamfile.jam | 1 - netfs/lib/Jamfile.jam | 1 - netfs/unittests/mockDaemon.h | 5 +++-- netfs/unittests/mockFuse.h | 5 +++-- 7 files changed, 10 insertions(+), 15 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 - release:"-std=c++1y" + release:"-std=c++1y -fvisibility=hidden" release:"-Wl,-z,defs,--warn-once,--gc-sections" - debug:"-W -Wall -Werror -Wwrite-strings -std=c++1y" + debug:"-W -Wall -Werror -Wwrite-strings -std=c++1y -fvisibility=hidden" debug:"-Wl,-z,defs,--warn-once" - coverage:"-W -Wall -Werror -Wwrite-strings -std=c++1y --coverage" + coverage:"-W -Wall -Werror -Wwrite-strings -std=c++1y --coverage -fvisibility=hidden" coverage:"-Wl,-z,defs,--warn-once --coverage" - component:"-W -Wall -Werror -Wwrite-strings -std=c++1y -fPIC" + component:"-W -Wall -Werror -Wwrite-strings -std=c++1y -fPIC -fvisibility=hidden" component:"-Wl,-z,lazy,--warn-once,-fPIC" ; diff --git a/netfs/daemon/Jamfile.jam b/netfs/daemon/Jamfile.jam index 903b938..e900ebd 100644 --- a/netfs/daemon/Jamfile.jam +++ b/netfs/daemon/Jamfile.jam @@ -11,7 +11,6 @@ lib netfsdConfiguration : ..//slicer ..//adhocutil yes - -fvisibility=hidden : : . ..//IceUtil @@ -39,7 +38,6 @@ lib netfsd : ../..//libxmlpp ..//adhocutil ..//slicer-xml - -fvisibility=hidden : : . ../ice//netfsComms diff --git a/netfs/fuse/Jamfile.jam b/netfs/fuse/Jamfile.jam index cc3b059..0a168ca 100644 --- a/netfs/fuse/Jamfile.jam +++ b/netfs/fuse/Jamfile.jam @@ -12,7 +12,6 @@ lib netfsClientConfiguration : ..//pthread ..//slicer ..//adhocutil - -fvisibility=hidden : : ..//IceUtil ..//Ice @@ -42,7 +41,6 @@ lib netfsClient : ../..//libxmlpp ..//adhocutil ..//slicer-xml - -fvisibility=hidden : : . ../../libfusepp @@ -59,7 +57,6 @@ exe netfs : netfsClient fuse ..//adhocutil - -fvisibility=hidden ; package.install install : : netfs : ; diff --git a/netfs/ice/Jamfile.jam b/netfs/ice/Jamfile.jam index d6fe45c..0a66073 100644 --- a/netfs/ice/Jamfile.jam +++ b/netfs/ice/Jamfile.jam @@ -10,7 +10,6 @@ lib netfsComms : Ice IceUtil pthread - -fvisibility=hidden : : . Ice diff --git a/netfs/lib/Jamfile.jam b/netfs/lib/Jamfile.jam index ebaa77e..dbc4b2e 100644 --- a/netfs/lib/Jamfile.jam +++ b/netfs/lib/Jamfile.jam @@ -8,7 +8,6 @@ lib netfsCommon : ../ice//netfsComms ..//adhocutil ../ice//netfsComms - -fvisibility=hidden : : . ; diff --git a/netfs/unittests/mockDaemon.h b/netfs/unittests/mockDaemon.h index d2afe18..a0de8b4 100644 --- a/netfs/unittests/mockDaemon.h +++ b/netfs/unittests/mockDaemon.h @@ -2,8 +2,9 @@ #define MOCKDAEMON_H #include +#include -class MockDaemon : public NetFSDaemon { +class DLL_PUBLIC MockDaemon : public NetFSDaemon { public: MockDaemon(const std::string & ep); @@ -13,7 +14,7 @@ class MockDaemon : public NetFSDaemon { virtual NetFS::Daemon::ConfigurationPtr ReadConfiguration(const boost::filesystem::path &) const override; }; -class MockDaemonHost { +class DLL_PUBLIC MockDaemonHost { public: MockDaemonHost(const std::string & ep, const Ice::StringSeq & ps = {}); ~MockDaemonHost(); diff --git a/netfs/unittests/mockFuse.h b/netfs/unittests/mockFuse.h index 71b1c5e..abace25 100644 --- a/netfs/unittests/mockFuse.h +++ b/netfs/unittests/mockFuse.h @@ -2,8 +2,9 @@ #define MOCKFUSE_H #include +#include -class FuseMock : public NetFS::FuseApp { +class DLL_PUBLIC FuseMock : public NetFS::FuseApp { public: FuseMock(const std::string &, const Ice::StringSeq &); @@ -22,7 +23,7 @@ class FuseMock : public NetFS::FuseApp { fuse_context context; }; -class FuseMockHost { +class DLL_PUBLIC FuseMockHost { public: FuseMockHost(const std::string &, const Ice::StringSeq &); ~FuseMockHost(); -- cgit v1.2.3