meson: don't export symbols by default
authorTim-Philipp Müller <tim@centricular.com>
Fri, 11 Aug 2017 19:26:06 +0000 (20:26 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 11 Aug 2017 19:26:10 +0000 (20:26 +0100)
Only plugin entry points should be exported.

meson.build

index dfb23d1..39c3859 100644 (file)
@@ -91,6 +91,11 @@ else
       language : 'c')
 endif
 
+# Symbol visibility
+if cc.has_argument('-fvisibility=hidden')
+  add_project_arguments('-fvisibility=hidden', language: 'c')
+endif
+
 if gst_dep.type_name() == 'internal'
     gst_proj = subproject('gstreamer')