Skip to content

Commit

Permalink
meson: use -Wl,-Bsymbolic-functions where supported
Browse files Browse the repository at this point in the history
Just like the autotools build.
  • Loading branch information
tp-m committed Apr 25, 2018
1 parent e99affa commit 447942c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meson.build
@@ -1,6 +1,6 @@
project('gst-plugins-base', 'c',
version : '1.15.0.1',
meson_version : '>= 0.42.0',
meson_version : '>= 0.46.0',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])

Expand Down Expand Up @@ -50,6 +50,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')
Expand Down

0 comments on commit 447942c

Please sign in to comment.