mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
add -fvisibility=hidden to libmidi++ and make things work
This commit is contained in:
parent
61c1956ef9
commit
300536e5cd
2 changed files with 3 additions and 1 deletions
|
|
@ -425,7 +425,7 @@ private:
|
||||||
MasterDeviceNames::Models _all_models;
|
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 */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,8 @@ def build(bld):
|
||||||
obj = bld.shlib(features = 'cxx cxxshlib', source=libmidi_sources)
|
obj = bld.shlib(features = 'cxx cxxshlib', source=libmidi_sources)
|
||||||
obj.defines = [ 'LIBMIDIPP_DLL=1', 'LIBMIDIPP_DLL_EXPORTS=1' ]
|
obj.defines = [ 'LIBMIDIPP_DLL=1', 'LIBMIDIPP_DLL_EXPORTS=1' ]
|
||||||
obj.defines += [ 'LIBPBD_DLL=1', 'LIBEVORAL_DLL=1' ]
|
obj.defines += [ 'LIBPBD_DLL=1', 'LIBEVORAL_DLL=1' ]
|
||||||
|
obj.cxxflags = [ '-fvisibility=hidden' ]
|
||||||
|
obj.cflags = [ '-fvisibility=hidden' ]
|
||||||
else:
|
else:
|
||||||
obj = bld.stlib(features = 'cxx cxxstlib', source=libmidi_sources)
|
obj = bld.stlib(features = 'cxx cxxstlib', source=libmidi_sources)
|
||||||
obj.cxxflags = [ '-fPIC', '-DWITH_JACK_MIDI' ]
|
obj.cxxflags = [ '-fPIC', '-DWITH_JACK_MIDI' ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue