Meson: Fix check for linker args
authorXavier Claessens <xavier.claessens@collabora.com>
Tue, 24 Apr 2018 18:37:40 +0000 (14:37 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 24 Apr 2018 23:40:30 +0000 (00:40 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=795513

meson.build

index cab8509..4bfaf72 100644 (file)
@@ -1,6 +1,6 @@
 project('gstreamer', 'c',
   version : '1.15.0.1',
-  meson_version : '>= 0.42',
+  meson_version : '>= 0.46',
   default_options : [ 'warning_level=1',
                       'buildtype=debugoptimized' ])
 
@@ -42,7 +42,7 @@ if cc.get_id() == 'msvc'
       '/wd4244', # lossy type conversion (e.g. double -> int)
       '/wd4305', # truncating type conversion (e.g. double -> float)
       language : 'c')
-elif cc.has_argument('-Wl,-Bsymbolic-functions')
+elif cc.has_link_argument('-Wl,-Bsymbolic-functions')
   # FIXME: Add an option for this if people ask for it
   add_project_link_arguments('-Wl,-Bsymbolic-functions', language : 'c')
 endif