From dfa7d5a9aae8ae445df302be19c47f2e715c20ab Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 4 Apr 2016 07:59:36 +0200 Subject: [PATCH] fixup! DEBUG This was a commit not intended for `master`. Signed-off-by: Johannes Schindelin --- Makefile | 2 +- config.mak.uname | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 77f0b900a4..33b0f76fd6 100644 --- a/Makefile +++ b/Makefile @@ -377,7 +377,7 @@ GIT-VERSION-FILE: FORCE # CFLAGS and LDFLAGS are for the users to override from the command line. -CFLAGS = -g -Wall +CFLAGS = -g -O2 -Wall LDFLAGS = ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS) ALL_LDFLAGS = $(LDFLAGS) diff --git a/config.mak.uname b/config.mak.uname index 61006490c4..ac81fddf6f 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -545,6 +545,8 @@ else 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