diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-08-11 13:59:04 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-08-11 13:59:04 +0100 |
commit | 57b542c5e5f66cd8f37d835b036bfc49273eddd4 (patch) | |
tree | 16fcefac779b3da858412ccc6993ebdf0e27ee16 /meson.build | |
parent | d1eb5f727ca350a6c2e516684b7915c9c5c32dfc (diff) | |
download | gstreamer-plugins-bad-57b542c5e5f66cd8f37d835b036bfc49273eddd4.tar.gz |
meson: hide symbols by default unless explicitly exported
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 8 |
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'], |