13
0

add -fvisibility=hidden to libmidi++ and make things work

This commit is contained in:
Paul Davis 2013-10-17 15:07:18 -04:00
parent 61c1956ef9
commit 300536e5cd
2 changed files with 3 additions and 1 deletions

View File

@ -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 */
}

View File

@ -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' ]