meson: hide symbols by default unless explicitly exported

This commit is contained in:
Tim-Philipp Müller 2017-08-12 12:08:09 +01:00
parent 8b91fef492
commit a0ff0095b5

View file

@ -49,6 +49,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
gst_dep = dependency('gstreamer-' + apiversion, version : gst_req, gst_dep = dependency('gstreamer-' + apiversion, version : gst_req,
fallback : ['gstreamer', 'gst_dep']) fallback : ['gstreamer', 'gst_dep'])
gst_pbutils_dep = dependency('gstreamer-pbutils-' + apiversion, version : gst_req, gst_pbutils_dep = dependency('gstreamer-pbutils-' + apiversion, version : gst_req,