Fix stack protection with LTO.

This commit is contained in:
Pentarctagon 2018-06-10 20:10:50 -05:00
parent 9cacf9f301
commit 643b4aa0e0

View file

@ -490,6 +490,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
# #