Use some linker flags only on Linux

Using GCC is not a guarantee of also having access to the Linux linker;
just like we use specific linker flags on macOS, the symbolic and relro
linker flags are pretty much Linux specific.
macos/v1.5.9
Emmanuele Bassi 8 years ago
parent d0a1a4e676
commit bfd99a9421
  1. 3
      src/meson.build

@ -52,7 +52,8 @@ foreach h: headers
endforeach
common_ldflags = []
if cc.get_id() == 'gcc'
if host_system == 'linux'
common_ldflags = [ '-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now', ]
endif

Loading…
Cancel
Save