From a0ff0095b580b60c77ea8e8f256f48b2951640ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 12 Aug 2017 12:08:09 +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 8d7a3e87e2..da3f9669e1 100644 --- a/meson.build +++ b/meson.build @@ -49,6 +49,11 @@ else noseh_link_args = [] endif +# Symbol visibility +if cc.has_argument('-fvisibility=hidden') + add_project_arguments('-fvisibility=hidden', language: 'c') +endif + gst_dep = dependency('gstreamer-' + apiversion, version : gst_req, fallback : ['gstreamer', 'gst_dep']) gst_pbutils_dep = dependency('gstreamer-pbutils-' + apiversion, version : gst_req,