summaryrefslogtreecommitdiff
path: root/muse2/synti/s1/s1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/synti/s1/s1.cpp')
-rw-r--r--muse2/synti/s1/s1.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/muse2/synti/s1/s1.cpp b/muse2/synti/s1/s1.cpp
index c73615bd..8520a742 100644
--- a/muse2/synti/s1/s1.cpp
+++ b/muse2/synti/s1/s1.cpp
@@ -221,7 +221,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; }
}