summaryrefslogtreecommitdiff
path: root/muse2/synti/deicsonze2
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/synti/deicsonze2')
-rw-r--r--muse2/synti/deicsonze2/CMakeLists.txt2
-rw-r--r--muse2/synti/deicsonze2/deicsonze.cpp5
2 files changed, 6 insertions, 1 deletions
diff --git a/muse2/synti/deicsonze2/CMakeLists.txt b/muse2/synti/deicsonze2/CMakeLists.txt
index 430953ca..12f88212 100644
--- a/muse2/synti/deicsonze2/CMakeLists.txt
+++ b/muse2/synti/deicsonze2/CMakeLists.txt
@@ -46,7 +46,7 @@ target_link_libraries( deicsonze synti )
set_target_properties ( deicsonze
PROPERTIES PREFIX ""
#COMPILE_FLAGS "-O2 -include ${PROJECT_BINARY_DIR}/all-pic.h"
- COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all-pic.h"
+ COMPILE_FLAGS "-fvisibility=hidden -include ${PROJECT_BINARY_DIR}/all-pic.h"
)
target_link_libraries(deicsonze
diff --git a/muse2/synti/deicsonze2/deicsonze.cpp b/muse2/synti/deicsonze2/deicsonze.cpp
index 28b9183e..74c1f56e 100644
--- a/muse2/synti/deicsonze2/deicsonze.cpp
+++ b/muse2/synti/deicsonze2/deicsonze.cpp
@@ -4350,7 +4350,12 @@ extern "C" {
MESS_MAJOR_VERSION, MESS_MINOR_VERSION,
instantiate
};
+ // We must compile with -fvisibility=hidden to avoid namespace
+ // conflicts with global variables.
+ // Only visible symbol is "mess_descriptor".
+ // (TODO: all plugins should be compiled this way)
+ __attribute__ ((visibility("default")))
const MESS* mess_descriptor() { return &descriptor; }
}