mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 02:15:19 +00:00
Enable ASLR and NX bit security features for mingw builds
(cherry-picked from commit 8b1a5c0dde9e1a36531e6d104737b40531e59cd0)
This commit is contained in:
parent
ec9f2c8265
commit
f7ad6de3fd
@ -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…
x
Reference in New Issue
Block a user