summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-08-11 13:59:04 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-08-11 13:59:04 +0100
commit57b542c5e5f66cd8f37d835b036bfc49273eddd4 (patch)
tree16fcefac779b3da858412ccc6993ebdf0e27ee16 /meson.build
parentd1eb5f727ca350a6c2e516684b7915c9c5c32dfc (diff)
downloadgstreamer-plugins-bad-57b542c5e5f66cd8f37d835b036bfc49273eddd4.tar.gz
meson: hide symbols by default unless explicitly exported
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f09faad78..cd79e52de 100644
--- a/meson.build
+++ b/meson.build
@@ -53,6 +53,14 @@ else
noseh_link_args = []
endif
+# Symbol visibility
+if cc.has_argument('-fvisibility=hidden')
+ add_project_arguments('-fvisibility=hidden', language: 'c')
+endif
+if cxx.has_argument('-fvisibility=hidden')
+ add_project_arguments('-fvisibility=hidden', language: 'cpp')
+endif
+
cdata = configuration_data()
check_headers = [
['HAVE_DLFCN_H', 'dlfcn.h'],