From df67c50f67442739da837becc1f256139f1b3c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 10 Aug 2017 14:01:09 +0100 Subject: [PATCH] meson: don't export symbols by default Only plugin entry points should be exported. Currently plugins might export more symbols with the meson build, as we don't have the exports regexp there that we pass to libtool. --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 9e8947a14b..61f0077621 100644 --- a/meson.build +++ b/meson.build @@ -42,6 +42,11 @@ else noseh_link_args = [] endif +# Symbol visibility +if cc.has_argument('-fvisibility=hidden') + add_project_arguments('-fvisibility=hidden', language: 'c') +endif + cdata = configuration_data() check_headers = [