From 600f9800e0fbe69fd4b06012f08f59ea58a64fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 11 Aug 2017 22:27:48 +0100 Subject: [PATCH] meson: hide symbols by default unless explicitly exported --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) 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"')