diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-17 15:07:18 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-17 15:07:18 -0400 |
commit | 300536e5cdc18709d6fef9014e0fdb400f954e0d (patch) | |
tree | 71353a258069f24476a1a44f043ae9790a68dde8 /libs/midi++2 | |
parent | 61c1956ef994483d92828169b7b032d5520d2256 (diff) |
add -fvisibility=hidden to libmidi++ and make things work
Diffstat (limited to 'libs/midi++2')
-rw-r--r-- | libs/midi++2/midi++/midnam_patch.h | 2 | ||||
-rw-r--r-- | libs/midi++2/wscript | 2 |
2 files changed, 3 insertions, 1 deletions
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' ] |