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.
This commit is contained in:
Tim-Philipp Müller 2017-08-10 11:55:58 +01:00
parent fc826ac6dc
commit 7d789cc589

View file

@ -42,6 +42,11 @@ else
noseh_link_args = [] noseh_link_args = []
endif endif
# Symbol visibility
if cc.has_argument('-fvisibility=hidden')
add_project_arguments('-fvisibility=hidden', language: 'c')
endif
cdata = configuration_data() cdata = configuration_data()
check_headers = [ check_headers = [
['HAVE_DLFCN_H', 'dlfcn.h'], ['HAVE_DLFCN_H', 'dlfcn.h'],