summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-07-29 18:13:49 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-07-29 18:14:19 +0200
commitcd696520b3038de887af412cb68effec21da6a2f (patch)
tree2ce9cb8e45dde82bae3484a1e658db311c746ac6 /plugin
parent5205759c41c6f6a236bd24ae0f0e977cedc81740 (diff)
Hide unneeded symbols for the lv2 plugin.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/Makefile.am b/plugin/Makefile.am
index 1af55c5..54fa7c8 100644
--- a/plugin/Makefile.am
+++ b/plugin/Makefile.am
@@ -11,6 +11,7 @@ lv2plugin_DATA = manifest.ttl drumgizmo.ttl
endif
drumgizmo_la_CXXFLAGS = -DLV2 -DLV2_PLUGIN_URI=\"http://drumgizmo.org/lv2\" \
+ -fvisibility=hidden \
$(LV2_CFLAGS) \
$(SNDFILE_CFLAGS) \
-I$(top_srcdir)/include \
@@ -19,13 +20,17 @@ drumgizmo_la_CXXFLAGS = -DLV2 -DLV2_PLUGIN_URI=\"http://drumgizmo.org/lv2\" \
-I$(top_srcdir)/src \
-I$(top_srcdir)/hugin
+drumgizmo_la_CFLAGS = -fvisibility=hidden
+
drumgizmo_la_SOURCES = \
$(top_srcdir)/hugin/hugin.c \
$(top_srcdir)/plugin/plugingizmo/midievent.cc \
$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc \
drumgizmo_plugin.cc
-drumgizmo_la_LDFLAGS = -shared -module -avoid-version
+drumgizmo_la_LDFLAGS = -shared -module -avoid-version \
+ -export-symbols-regex "lv2_descriptor|lv2ui_descriptor"
+
drumgizmo_la_LIBADD = $(LV2_LIBS) \
$(top_srcdir)/plugingui/libdggui.la \
$(top_srcdir)/src/libdg.la