diff --git a/config.mak.uname b/config.mak.uname index 0adeba717ab165..7a530118a49c50 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -547,6 +547,10 @@ else ifeq ($(shell expr "$(uname_R)" : '2\.'),2) # MSys2 prefix = /usr/ + # Enable DEP + BASIC_LDFLAGS += -Wl,--nxcompat + # Enable ASLR + BASIC_LDFLAGS += -Wl,--dynamicbase ifeq (MINGW32,$(MSYSTEM)) prefix = /mingw32 BASIC_LDFLAGS += -Wl,--pic-executable,-e,_mainCRTStartup