From 47f165663962a38bb9a3a1abee7239004d1a9bb8 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 21 Jan 2018 15:24:11 +0000 Subject: [PATCH] Export only main functions for LV2 plugin in macOS --- source/plugin/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/plugin/Makefile b/source/plugin/Makefile index 0466d95f8..eb62aa1d4 100644 --- a/source/plugin/Makefile +++ b/source/plugin/Makefile @@ -81,6 +81,12 @@ LINK_FLAGS += $(LINUXSAMPLER_LIBS) LINK_FLAGS += $(MAGIC_LIBS) LINK_FLAGS += $(X11_LIBS) +ifeq ($(MACOS),true) +# NOTE: this assumes only LV2 version will be built +SHARED += -Wl,-exported_symbol,_lv2_descriptor +SHARED += -Wl,-exported_symbol,_lv2ui_descriptor +endif + # ---------------------------------------------------------------------------------------------------------------------------- TARGETS = \