diff --git a/ext/sidplay/meson.build b/ext/sidplay/meson.build index 5940ce9b79..6310da741b 100644 --- a/ext/sidplay/meson.build +++ b/ext/sidplay/meson.build @@ -2,6 +2,11 @@ have_sidplay = false if add_languages('cpp') cxx = meson.get_compiler('cpp') + if cxx.has_argument('-fvisibility=hidden') + cxx_vis_args = ['-fvisibility=hidden'] + else + cxx_vis_args = [] + endif if cxx.has_header('sidplay/player.h') sid_code = '''#include @@ -17,7 +22,7 @@ endif if have_sidplay shared_module('gstsid', 'gstsiddec.cc', - cpp_args : ugly_args, + cpp_args : ugly_args + cxx_vis_args, include_directories : [configinc], dependencies : [gstaudio_dep, sidplay_dep], install : true,