From 94d2e4c2230be9a8e8be4835da85356c58882732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 10 Aug 2017 14:00:21 +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 bccb5f81e9..ffce497eff 100644 --- a/meson.build +++ b/meson.build @@ -50,6 +50,11 @@ else noseh_link_args = [] endif +# Symbol visibility +if cc.has_argument('-fvisibility=hidden') + add_project_arguments('-fvisibility=hidden', language: 'c') +endif + core_conf = configuration_data() check_headers = [ ['HAVE_DLFCN_H', 'dlfcn.h'],