From dbd7a06ea9e3efdfb4e7219bf5efcb09d03aacda Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 11 Mar 2014 10:56:38 -0700 Subject: Enable PIE to allow ASLR (security) --- make-mac.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-mac.mk b/make-mac.mk index 35f8c9b7..559ef2be 100644 --- a/make-mac.mk +++ b/make-mac.mk @@ -23,7 +23,7 @@ endif #DEFS+=-DZT_TRACE -DZT_LOG_STDOUT # Uncomment for a release optimized universal binary build -CFLAGS=-arch i386 -arch x86_64 -Wall -O3 -flto -fvectorize -fstack-protector -pthread -mmacosx-version-min=10.6 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS) +CFLAGS=-arch i386 -arch x86_64 -Wall -O3 -flto -fPIE -fvectorize -fstack-protector -pthread -mmacosx-version-min=10.6 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS) STRIP=strip # Uncomment for a debug build -- cgit v1.2.3