From 300536e5cdc18709d6fef9014e0fdb400f954e0d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 17 Oct 2013 15:07:18 -0400 Subject: [PATCH] add -fvisibility=hidden to libmidi++ and make things work --- libs/midi++2/midi++/midnam_patch.h | 2 +- libs/midi++2/wscript | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/midi++2/midi++/midnam_patch.h b/libs/midi++2/midi++/midnam_patch.h index be409bcf8e..d67543429a 100644 --- a/libs/midi++2/midi++/midnam_patch.h +++ b/libs/midi++2/midi++/midnam_patch.h @@ -425,7 +425,7 @@ private: MasterDeviceNames::Models _all_models; }; -extern const char* general_midi_program_names[128]; /* 0 .. 127 */ +LIBMIDIPP_API extern const char* general_midi_program_names[128]; /* 0 .. 127 */ } diff --git a/libs/midi++2/wscript b/libs/midi++2/wscript index c950d13192..e27c4876ee 100644 --- a/libs/midi++2/wscript +++ b/libs/midi++2/wscript @@ -64,6 +64,8 @@ def build(bld): obj = bld.shlib(features = 'cxx cxxshlib', source=libmidi_sources) obj.defines = [ 'LIBMIDIPP_DLL=1', 'LIBMIDIPP_DLL_EXPORTS=1' ] obj.defines += [ 'LIBPBD_DLL=1', 'LIBEVORAL_DLL=1' ] + obj.cxxflags = [ '-fvisibility=hidden' ] + obj.cflags = [ '-fvisibility=hidden' ] else: obj = bld.stlib(features = 'cxx cxxstlib', source=libmidi_sources) obj.cxxflags = [ '-fPIC', '-DWITH_JACK_MIDI' ]