Enable ASLR and NX bit security features for mingw builds
(cherry-picked from commit 8b1a5c0dde
)
This commit is contained in:
parent
ec9f2c8265
commit
f7ad6de3fd
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue