Enable ASLR and NX bit security features for mingw builds

(cherry-picked from commit 8b1a5c0dde)
This commit is contained in:
loonycyborg 2018-05-31 03:33:10 +03:00
parent ec9f2c8265
commit f7ad6de3fd

View file

@ -557,6 +557,10 @@ for env in [test_env, client_env, env]:
rel_comp_flags = rel_comp_flags + " -flto=thin"
rel_link_flags = rel_comp_flags + " -fuse-ld=lld"
# Enable ASLR and NX bit support on mingw
if "mingw" in env["TOOLS"]:
rel_link_flags += "-Wl,--dynamicbase -Wl,--nxcompat"
# #
# End setting options for release build
# Start setting options for profile build