Fix stack protection with LTO.

This commit is contained in:
Pentarctagon 2018-06-10 20:23:27 -05:00
parent fbc74bf007
commit 5a2d1bc992

View file

@ -503,6 +503,9 @@ for env in [test_env, client_env, env]:
env.AppendUnique(LINKFLAGS = ["-fPIE", "-pie", "-Wl,-z,now,-z,relro"])
env.AppendUnique(CPPDEFINES = ["_FORTIFY_SOURCE=2"])
if env["enable_lto"] == True:
env.AppendUnique(LINKFLAGS = ["-fstack-protector-strong"])
# #
# Start determining options for debug build
# #