From 858a9d2054a2209e09597645b8dee8ad746e95c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 25 Apr 2018 11:00:32 +0100 Subject: [PATCH] meson: use -Wl,-Bsymbolic-functions where supported Just like the autotools build. --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 775940fded..ebea2e9816 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('gst-rtsp-server', 'c', version : '1.15.0.1', - meson_version : '>= 0.33.0', + meson_version : '>= 0.46.0', default_options : ['warning_level=1', 'buildtype=debugoptimized']) gst_version = meson.project_version() @@ -27,6 +27,10 @@ plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir')) 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')