[json-glib: 5/7] Fix detection of linker arguments



commit a36715783746f516731dfbf83ed605edaae60c61
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Mon Nov 19 21:19:29 2018 -0500

    Fix detection of linker arguments

 meson.build | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/meson.build b/meson.build
index 79ed9de..e247049 100644
--- a/meson.build
+++ b/meson.build
@@ -132,11 +132,11 @@ common_cflags = cc.get_supported_arguments(test_cflags)
 
 common_ldflags = []
 if host_system == 'linux'
-  foreach ldflag: [ '-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now', ]
-    if cc.has_argument(ldflag)
-      common_ldflags += ldflag
-    endif
-  endforeach
+  common_ldflags += cc.get_supported_link_arguments([
+    '-Wl,-Bsymbolic',
+    '-Wl,-z,relro',
+    '-Wl,-z,now',
+  ])
 endif
 
 # Maintain compatibility with autotools


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