[glib-networking] Meson: Use get_supported_link_arguments() for '-Wl, ' args



commit 452c085654335fceacdadeef818f61768a6f74ab
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Mon Apr 23 16:39:20 2018 -0400

    Meson: Use get_supported_link_arguments() for '-Wl,' args
    
    Otherwise meson print warning because get_supported_arguments() tests if
    a code snippet compiles but not links.
    
    This uses new API added in meson 0.46.0.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=794978

 meson.build |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 0e5913d..3360b69 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,7 @@ project(
   'glib-networking', 'c',
   version: '2.57.1',
   license: 'LGPL2.1+',
-  meson_version: '>= 0.43.0',
+  meson_version: '>= 0.46.0',
   default_options: ['c_std=c11']
 )
 
@@ -38,8 +38,7 @@ module_ldflags = []
 
 if host_machine.system().contains('linux')
   test_ldflag = '-Wl,--version-script,' + symbol_map
-
-  module_ldflags += cc.get_supported_arguments(test_ldflag)
+  module_ldflags += cc.get_supported_link_arguments(test_ldflag)
 endif
 
 # *** Check GLib GIO        ***


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]