diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2018-04-25 11:01:45 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-04-25 11:01:45 +0100 |
commit | bfd4b43c1668835dad7d2ef881d00be65189a48c (patch) | |
tree | 26b40f18e31f5660fcc3ab26d80b8b81f35ace1d /meson.build | |
parent | b9b696b07b3d2f42b0ec47baeefee57b9a3eff9b (diff) |
meson: use -Wl,-Bsymbolic-functions where supported
Just like the autotools build.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 72fa6e57..38eac9da 100644 --- a/meson.build +++ b/meson.build @@ -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') |