summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-08-11 22:27:48 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-08-11 22:28:04 +0100
commit600f9800e0fbe69fd4b06012f08f59ea58a64fbd (patch)
treebece8052146c95eeb207de39238bf6c8f9fd0e0d
parent7bec37a7553f168e4ea739cd5afcb4ed4bfdf064 (diff)
meson: hide symbols by default unless explicitly exported
-rw-r--r--meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f7bb17d75e..cc6a6965e2 100644
--- a/meson.build
+++ b/meson.build
@@ -38,6 +38,11 @@ if cc.get_id() == 'msvc'
language : 'c')
endif
+# Symbol visibility
+if cc.has_argument('-fvisibility=hidden')
+ add_project_arguments('-fvisibility=hidden', language: 'c')
+endif
+
cdata = configuration_data()
cdata.set('VERSION', '"@0@"'.format(gst_version))
cdata.set('PACKAGE', '"gst-editing-services"')