summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-04-25 11:00:00 +0100
committerTim-Philipp Müller <tim@centricular.com>2018-04-25 11:00:00 +0100
commit87368e98b42bc83c47648938914cc3a08db9f80e (patch)
tree8b645bf8407aeec91cb50f10d4466f172f3584f1 /meson.build
parent5a5bf4b3e302d8f3d7541c26bb7ceff4f11c1628 (diff)
meson: use -Wl,-Bsymbolic-functions where supported
Just like the autotools build.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index b29d6c8dc..3bf1ae88f 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('gst-plugins-bad', 'c', 'cpp',
version : '1.15.0.1',
- meson_version : '>= 0.42',
+ meson_version : '>= 0.46',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
@@ -53,6 +53,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')