diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-08-10 11:55:58 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-08-10 12:01:52 +0100 |
commit | 7d789cc58975f0228bccb06244fc8b3c8e376647 (patch) | |
tree | 6c3e1b5723ef80e3c28e2b74f953d305852f7035 | |
parent | fc826ac6dcf49ffade8baf0c33698f4d1340f1b9 (diff) |
meson: don't export symbols by default
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.
-rw-r--r-- | meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 3361dbcee1..7c29a7a248 100644 --- a/meson.build +++ b/meson.build @@ -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 = [ ['HAVE_DLFCN_H', 'dlfcn.h'], |