build: add -Wl,-z,relro -Wl,-z,defs and -Wl,-z,now link flags

This commit is contained in:
Christian Hergert
2020-01-31 09:09:38 -08:00
parent 96000a4115
commit aee8bb12c8

View File

@ -155,6 +155,9 @@ if not get_option('buildtype').startswith('debug')
test_link_args += [
'-Wl,-Bsymbolic',
'-fno-plt',
'-Wl,-z,relro',
'-Wl,-z,defs',
'-Wl,-z,now',
]
endif