Enable ASLR and NX bit security features for mingw builds

This commit is contained in:
loonycyborg 2018-05-31 03:33:10 +03:00
parent fe2d2dbe6a
commit 8a1d50799e

View file

@ -533,6 +533,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,--dynamic-base -Wl,--nxcompat"
# #
# End setting options for release build
# Start setting options for profile build