[json-glib: 1/2] build: try using more linker flags if available




commit f089bc9b1ffee78d0789102deaf707e611ec4d53
Author: Pino Toscano <toscano pino tiscali it>
Date:   Tue Sep 8 08:53:02 2020 +0200

    build: try using more linker flags if available
    
    Try using more linker flags on any platform; only the supported ones
    will be then used.

 meson.build | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/meson.build b/meson.build
index 4511982..0b842f1 100644
--- a/meson.build
+++ b/meson.build
@@ -137,15 +137,12 @@ if get_option('debug')
   cdata.set('JSON_ENABLE_DEBUG', true)
 endif
 
-common_ldflags = []
-if host_system == 'linux'
-  common_ldflags += cc.get_supported_link_arguments([
-    '-Wl,-Bsymbolic',
-    '-Wl,-z,relro',
-    '-Wl,-z,now',
-    '-Wl,--default-symver',
-  ])
-endif
+common_ldflags = cc.get_supported_link_arguments([
+  '-Wl,-Bsymbolic',
+  '-Wl,-z,relro',
+  '-Wl,-z,now',
+  '-Wl,--default-symver',
+])
 
 root_dir = include_directories('.')
 


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