From: Seonah Moon Date: Wed, 9 Aug 2017 08:19:56 +0000 (+0900) Subject: Apply ASLR to curl command tool X-Git-Tag: accepted/tizen/4.0/unified/20170828.222541^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fcurl.git;a=commitdiff_plain;h=803cf5d16c7bc7baee9499251599f52958fc121e Apply ASLR to curl command tool Change-Id: Iffcece4c6629c0521545a1e841fe1858687befad Signed-off-by: Seonah Moon --- diff --git a/src/Makefile.am b/src/Makefile.am index 19bab68..fb97da2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -57,7 +57,9 @@ include Makefile.inc curl_SOURCES = $(CURL_FILES) # This might hold -Werror -CFLAGS += @CURL_CFLAG_EXTRAS@ +# Enable Position Independent Executable flag +CFLAGS += @CURL_CFLAG_EXTRAS@ -fPIE +LDFLAGS += -pie # Prevent LIBS from being used for all link targets LIBS = $(BLANK_AT_MAKETIME)