From: Tim-Philipp Müller Date: Wed, 25 Apr 2018 09:58:41 +0000 (+0100) Subject: meson: use -Wl,-Bsymbolic-functions where supported X-Git-Tag: 1.19.3~509^2~1588 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84831ad03ded24f4dcd98e793a59f7530da86993;p=platform%2Fupstream%2Fgstreamer.git meson: use -Wl,-Bsymbolic-functions where supported Just like the autotools build. --- diff --git a/meson.build b/meson.build index 37126ddc..feb1660 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('gst-plugins-good', 'c', version : '1.15.0.1', - meson_version : '>= 0.36.0', + meson_version : '>= 0.46.0', default_options : [ 'warning_level=1', 'buildtype=debugoptimized' ]) @@ -44,6 +44,10 @@ else noseh_link_args = [] endif +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')