summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--ftnoir_filter_base/ftnoir_filter_base_global.h6
-rw-r--r--ftnoir_protocol_base/ftnoir_protocol_base_global.h6
-rw-r--r--ftnoir_tracker_base/ftnoir_tracker_base_global.h6
4 files changed, 16 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 17fb0145..1b0975ae 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,7 @@ if(APPLE)
set(CMAKE_STATIC_LINKER_FLAGS " ${apple-frameworks} ${CMAKE_STATIC_LINKER_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS " ${apple-frameworks} ${CMAKE_EXE_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS " ${apple-frameworks} ${CMAKE_MODULE_LINKER_FLAGS}")
- set(CMAKE_CXX_FLAGS " -stdlib=libc++ -std=c++11 ${CMAKE_CXX_FLAGS}")
+ set(CMAKE_CXX_FLAGS " -stdlib=libc++ -std=c++11 ${CMAKE_CXX_FLAGS} -fvisibility=hidden")
endif()
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
diff --git a/ftnoir_filter_base/ftnoir_filter_base_global.h b/ftnoir_filter_base/ftnoir_filter_base_global.h
index ce112411..a1a13315 100644
--- a/ftnoir_filter_base/ftnoir_filter_base_global.h
+++ b/ftnoir_filter_base/ftnoir_filter_base_global.h
@@ -4,7 +4,11 @@
#include <QtGlobal>
#ifndef OPENTRACK_MAIN
-# define FTNOIR_FILTER_BASE_EXPORT Q_DECL_EXPORT
+# if !defined(_MSC_VER)
+# define FTNOIR_FILTER_BASE_EXPORT __attribute__ ((visibility ("default")))
+# else
+# define FTNOIR_FILTER_BASE_EXPORT Q_DECL_EXPORT
+#endif
#else
# define FTNOIR_FILTER_BASE_EXPORT Q_DECL_IMPORT
#endif
diff --git a/ftnoir_protocol_base/ftnoir_protocol_base_global.h b/ftnoir_protocol_base/ftnoir_protocol_base_global.h
index bed874c4..06386c7f 100644
--- a/ftnoir_protocol_base/ftnoir_protocol_base_global.h
+++ b/ftnoir_protocol_base/ftnoir_protocol_base_global.h
@@ -4,7 +4,11 @@
#include <QtGlobal>
#ifndef OPENTRACK_MAIN
-# define FTNOIR_PROTOCOL_BASE_EXPORT Q_DECL_EXPORT
+# if !defined(_MSC_VER)
+# define FTNOIR_PROTOCOL_BASE_EXPORT __attribute__ ((visibility ("default")))
+# else
+# define FTNOIR_PROTOCOL_BASE_EXPORT Q_DECL_EXPORT
+#endif
#else
# define FTNOIR_PROTOCOL_BASE_EXPORT Q_DECL_IMPORT
#endif
diff --git a/ftnoir_tracker_base/ftnoir_tracker_base_global.h b/ftnoir_tracker_base/ftnoir_tracker_base_global.h
index 30fb95e9..a529da78 100644
--- a/ftnoir_tracker_base/ftnoir_tracker_base_global.h
+++ b/ftnoir_tracker_base/ftnoir_tracker_base_global.h
@@ -4,7 +4,11 @@
#include <QtGlobal>
#ifndef OPENTRACK_MAIN
-# define FTNOIR_TRACKER_BASE_EXPORT Q_DECL_EXPORT
+# if !defined(_MSC_VER)
+# define FTNOIR_TRACKER_BASE_EXPORT __attribute__ ((visibility ("default")))
+# else
+# define FTNOIR_TRACKER_BASE_EXPORT Q_DECL_EXPORT
+#endif
#else
# define FTNOIR_TRACKER_BASE_EXPORT Q_DECL_IMPORT
#endif