diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-07-29 19:37:45 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-07-29 19:37:45 +0200 |
commit | 982aad68eedfcd70a19864c31255e70a34876db4 (patch) | |
tree | 5d79aa67a5e8d71468a7992854c2d28a5f720950 /plugin | |
parent | bfa0773b20be6321d2fd14024be2f030a447e931 (diff) |
Hide unneeded symbols for the vst plugin.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/Makefile.am | 7 | ||||
-rw-r--r-- | plugin/Makefile.mingw32.in | 11 | ||||
-rw-r--r-- | plugin/drumgizmo_vst.sym | 2 |
3 files changed, 15 insertions, 5 deletions
diff --git a/plugin/Makefile.am b/plugin/Makefile.am index 74b50b8..ccdbfce 100644 --- a/plugin/Makefile.am +++ b/plugin/Makefile.am @@ -46,6 +46,7 @@ vstplugin_DATA = endif drumgizmo_vst_la_CXXFLAGS = -DVST \ + -fvisibility=hidden \ $(SNDFILE_CFLAGS) \ -I$(top_srcdir)/include \ -I$(top_srcdir)/plugin/plugingizmo \ @@ -54,13 +55,17 @@ drumgizmo_vst_la_CXXFLAGS = -DVST \ -I$(top_srcdir)/hugin \ $(VST_CPPFLAGS) -Ivst +drumgizmo_vst_la_CFLAGS = -fvisibility=hidden + drumgizmo_vst_la_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/plugin/plugingizmo/midievent.cc \ $(top_srcdir)/plugin/plugingizmo/pluginvst.cc \ drumgizmo_plugin.cc -drumgizmo_vst_la_LDFLAGS = -shared -module -avoid-version +drumgizmo_vst_la_LDFLAGS = -shared -module -avoid-version \ + -export-symbols drumgizmo_vst.sym + drumgizmo_vst_la_LIBADD = vst/libvstsdk.la \ $(top_srcdir)/plugingui/libdggui.la \ $(top_srcdir)/src/libdg.la diff --git a/plugin/Makefile.mingw32.in b/plugin/Makefile.mingw32.in index 5979663..8615bb4 100644 --- a/plugin/Makefile.mingw32.in +++ b/plugin/Makefile.mingw32.in @@ -127,6 +127,9 @@ SRC_LIBS=@SAMPLERATE_LIBS@ ZITA_CXXFLAGS=@ZITA_CPPFLAGS@ ZITA_LIBS=@ZITA_LIBS@ +CXXFLAGS += -fvisibility=hidden +CFLAGS += -fvisibility=hidden + SRC = \ @top_srcdir@/plugin/plugingizmo/midievent.cc \ @top_srcdir@/plugin/plugingizmo/pluginvst.cc \ @@ -165,10 +168,10 @@ RES = \ all: g++ @top_srcdir@/plugingui/rcgen.cc -o @top_srcdir@/plugingui/rcgen (cd @top_srcdir@/plugingui; ./rcgen $(RES) > resource_data.cc) - g++ @top_srcdir@/plugingui/resource_data.cc -c - gcc $(DBG_CFLAGS) @top_srcdir@/hugin/hugin.c -c - gcc $(DBG_CFLAGS) @top_srcdir@/hugin/hugin_syslog.c -c - g++ $(CXXFLAGS) -std=c++11 -static -static-libgcc -O2 -g -Wall $(DBG_CFLAGS) $(DG_CFLAGS) $(DG_LIBS) $(VST_CFLAGS) hugin.o hugin_syslog.o resource_data.o $(DG_SRC) $(VST_SRC) ${SRC} ${GUI_SRC} ${GUI_CPPFLAGS} $(GUI_LIBS) $(EXPAT_CFLAGS) $(SRC_CFLAGS) $(ZITA_CXXFLAGS) $(EXPAT_LIBS) $(SNDFILE_CFLAGS) $(SNDFILE_LIBS) $(SRC_LIBS) $(ZITA_LIBS) -latomic -shared -o drumgizmo_vst.dll -Wl,--out-implib,libdrumgizmo_vst.a + g++ $(CXXFLAGS) @top_srcdir@/plugingui/resource_data.cc -c + gcc $(CFLAGS) $(DBG_CFLAGS) @top_srcdir@/hugin/hugin.c -c + gcc $(CFLAGS) $(DBG_CFLAGS) @top_srcdir@/hugin/hugin_syslog.c -c + g++ $(CXXFLAGS) -std=c++11 -static -static-libgcc -O2 -g -Wall $(DBG_CFLAGS) $(DG_CFLAGS) $(DG_LIBS) $(VST_CFLAGS) hugin.o hugin_syslog.o resource_data.o $(DG_SRC) $(VST_SRC) ${SRC} ${GUI_SRC} ${GUI_CPPFLAGS} $(GUI_LIBS) $(EXPAT_CFLAGS) $(SRC_CFLAGS) $(ZITA_CXXFLAGS) $(EXPAT_LIBS) $(SNDFILE_CFLAGS) $(SNDFILE_LIBS) $(SRC_LIBS) $(ZITA_LIBS) -latomic -shared -Wl,-retain-symbols-file -Wl,drumgizmo_vst.sym -o drumgizmo_vst.dll -Wl,--out-implib,libdrumgizmo_vst.a clean: del -f drumgizmo_vst.dll libdrumgizmo_vst.a diff --git a/plugin/drumgizmo_vst.sym b/plugin/drumgizmo_vst.sym new file mode 100644 index 0000000..bbaaec6 --- /dev/null +++ b/plugin/drumgizmo_vst.sym @@ -0,0 +1,2 @@ +VSTPluginMain +_VSTPluginMain |