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)