meson: use -Wl,-Bsymbolic-functions where supported

Just like the autotools build.
This commit is contained in:
Tim-Philipp Müller 2018-04-25 10:58:41 +01:00
parent 90244da780
commit 84831ad03d

View file

@ -1,6 +1,6 @@
project('gst-plugins-good', 'c', project('gst-plugins-good', 'c',
version : '1.15.0.1', version : '1.15.0.1',
meson_version : '>= 0.36.0', meson_version : '>= 0.46.0',
default_options : [ 'warning_level=1', default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ]) 'buildtype=debugoptimized' ])
@ -44,6 +44,10 @@ else
noseh_link_args = [] noseh_link_args = []
endif endif
if cc.has_link_argument('-Wl,-Bsymbolic-functions')
add_project_link_arguments('-Wl,-Bsymbolic-functions', language : 'c')
endif
# Symbol visibility # Symbol visibility
if cc.has_argument('-fvisibility=hidden') if cc.has_argument('-fvisibility=hidden')
add_project_arguments('-fvisibility=hidden', language: 'c') add_project_arguments('-fvisibility=hidden', language: 'c')