meson: don't export symbols by default
authorTim-Philipp Müller <tim@centricular.com>
Thu, 10 Aug 2017 13:01:09 +0000 (14:01 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 10 Aug 2017 13:01:57 +0000 (14:01 +0100)
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

index 9e8947a..61f0077 100644 (file)
@@ -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 = [