summaryrefslogtreecommitdiff
path: root/muse2/synti/deicsonze
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-11-01 08:36:22 +0000
committerTim E. Real <termtech@rogers.com>2010-11-01 08:36:22 +0000
commitbf32fe9882d7dd1dd6fbb88f39a42371063b6cd6 (patch)
tree57ce439a666b14632a186d859fd357134e6c414b /muse2/synti/deicsonze
parent4f767f96be2382c3f73a9619097a8cbabe3f7587 (diff)
All MESS plugins: compile with -fvisibility=hidden, fixes LADSPA plugins not appearing in list.
Added simpledrums2 (from muse_qt4_evolution).
Diffstat (limited to 'muse2/synti/deicsonze')
-rw-r--r--muse2/synti/deicsonze/CMakeLists.txt2
-rw-r--r--muse2/synti/deicsonze/deicsonze.cpp5
2 files changed, 6 insertions, 1 deletions
diff --git a/muse2/synti/deicsonze/CMakeLists.txt b/muse2/synti/deicsonze/CMakeLists.txt
index a39b0e14..c9da5854 100644
--- a/muse2/synti/deicsonze/CMakeLists.txt
+++ b/muse2/synti/deicsonze/CMakeLists.txt
@@ -47,7 +47,7 @@ add_library ( deicsonze SHARED
set_target_properties ( deicsonze
PROPERTIES PREFIX ""
#COMPILE_FLAGS "-O2 -include ${PROJECT_BINARY_DIR}/all-pic.h"
- COMPILE_FLAGS "-DINSTPREFIX='\"${CMAKE_INSTALL_PREFIX}\"' -include ${PROJECT_BINARY_DIR}/all-pic.h"
+ COMPILE_FLAGS "-fvisibility=hidden -DINSTPREFIX='\"${CMAKE_INSTALL_PREFIX}\"' -include ${PROJECT_BINARY_DIR}/all-pic.h"
)
target_link_libraries(deicsonze
diff --git a/muse2/synti/deicsonze/deicsonze.cpp b/muse2/synti/deicsonze/deicsonze.cpp
index 3dc5fafd..4eea4102 100644
--- a/muse2/synti/deicsonze/deicsonze.cpp
+++ b/muse2/synti/deicsonze/deicsonze.cpp
@@ -1660,7 +1660,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; }
}