summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-08-11 14:14:32 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-08-11 14:14:32 +0100
commit3452c5d4c62f6b50e368394ae2f66901ed0a030a (patch)
tree0d51dd2230ad021d0d096dbf627847b410921189
parentb648caac43af76b03b85a1bd676b09a145d8f54a (diff)
meson: hide symbols by default unless explicitly exported
-rw-r--r--meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index bedbc0f..05e5776 100644
--- a/meson.build
+++ b/meson.build
@@ -25,6 +25,13 @@ libversion = '@0@.@1@.0'.format(soversion, gst_version_minor.to_int() * 100 + gs
plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir'))
+cc = meson.get_compiler('c')
+
+# Symbol visibility
+if cc.has_argument('-fvisibility=hidden')
+ add_project_arguments('-fvisibility=hidden', language: 'c')
+endif
+
cdata = configuration_data()
cdata.set_quoted('GETTEXT_PACKAGE', 'gst-rtsp-server-1.0')
cdata.set_quoted('PACKAGE', 'gst-rtsp-server')