diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2020-09-08 08:53:02 +0200 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2020-10-03 19:21:44 +0200 |
commit | f089bc9b1ffee78d0789102deaf707e611ec4d53 (patch) | |
tree | 43776f3a6cd5da00f0dbb07dceecb1cb035e3b73 | |
parent | bf09582ab4c1cae58203f30d64222d100ffc31ab (diff) | |
download | json-glib-f089bc9b1ffee78d0789102deaf707e611ec4d53.tar.gz |
build: try using more linker flags if available
Try using more linker flags on any platform; only the supported ones
will be then used.
-rw-r--r-- | meson.build | 15 |
1 files 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('.') |