mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
meson: use -Wl,-Bsymbolic-functions where supported
Just like the autotools build.
This commit is contained in:
parent
b9b696b07b
commit
bfd4b43c16
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
project('gstreamer-vaapi', 'c',
|
||||
version : '1.15.0.1',
|
||||
meson_version : '>= 0.36.0',
|
||||
meson_version : '>= 0.46.0',
|
||||
default_options : [ 'warning_level=1',
|
||||
'buildtype=debugoptimized' ])
|
||||
|
||||
|
@ -21,6 +21,10 @@ gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
|
|||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
if cc.has_link_argument('-Wl,-Bsymbolic-functions')
|
||||
add_project_link_arguments('-Wl,-Bsymbolic-functions', language : 'c')
|
||||
endif
|
||||
|
||||
# Symbol visibility
|
||||
if cc.has_argument('-fvisibility=hidden')
|
||||
add_project_arguments('-fvisibility=hidden', language: 'c')
|
||||
|
|
Loading…
Reference in a new issue