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
commitf3aeae6b0a9cbb0b5953efe0c6ca6cc193f637a3 (patch)
treeab4c161f838c30bd60130a49c2bb3e3d005713ef
parentRemove straggling use of Slicer::Deserialize in favour of more flexible Deser... (diff)
downloadnetfs-1.1.6.tar.bz2
netfs-1.1.6.tar.xz
netfs-1.1.6.zip
Partially tested global visibility hidden in all projectsnetfs-1.1.6
-rw-r--r--Jamroot.jam8
-rw-r--r--netfs/daemon/Jamfile.jam2
-rw-r--r--netfs/fuse/Jamfile.jam3
-rw-r--r--netfs/ice/Jamfile.jam1
-rw-r--r--netfs/lib/Jamfile.jam1
-rw-r--r--netfs/unittests/mockDaemon.h5
-rw-r--r--netfs/unittests/mockFuse.h5
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
- <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/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 :
<library>..//slicer
<library>..//adhocutil
<slicer>yes
- <cflags>-fvisibility=hidden
: :
<include>.
<library>..//IceUtil
@@ -39,7 +38,6 @@ lib netfsd :
<library>../..//libxmlpp
<library>..//adhocutil
<library>..//slicer-xml
- <cflags>-fvisibility=hidden
: :
<include>.
<implicit-dependency>../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 :
<library>..//pthread
<library>..//slicer
<library>..//adhocutil
- <cflags>-fvisibility=hidden
: :
<library>..//IceUtil
<library>..//Ice
@@ -42,7 +41,6 @@ lib netfsClient :
<library>../..//libxmlpp
<library>..//adhocutil
<library>..//slicer-xml
- <cflags>-fvisibility=hidden
: :
<include>.
<include>../../libfusepp
@@ -59,7 +57,6 @@ exe netfs :
<library>netfsClient
<library>fuse
<library>..//adhocutil
- <cflags>-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 :
<library>Ice
<library>IceUtil
<library>pthread
- <cflags>-fvisibility=hidden
: :
<include>.
<library>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 :
<library>../ice//netfsComms
<library>..//adhocutil
<implicit-dependency>../ice//netfsComms
- <cflags>-fvisibility=hidden
: :
<include>.
;
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 <daemon.h>
+#include <visibility.h>
-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 <fuseApp.h>
+#include <visibility.h>
-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();