summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-08-10 15:48:27 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-08-10 15:48:27 +0100
commit87c58bd3c1e5ff7397c9d8c2c1e308b86fab1a99 (patch)
tree54e4a522a1d41f492d4fefbde78cfa772c970f5f /ext
parent7d789cc58975f0228bccb06244fc8b3c8e376647 (diff)
sidplay: hide symbols in meson for this c++ plugin too
Keep things local, as this is the only c++ plugin in ugly currently.
Diffstat (limited to 'ext')
-rw-r--r--ext/sidplay/meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/sidplay/meson.build b/ext/sidplay/meson.build
index 5940ce9b..6310da74 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 <sidplay/player.h>
@@ -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,