From 34e890bcf098ef21194db9d440762b5a34e50196 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Tue, 19 Nov 2019 13:23:14 -0500 Subject: [PATCH 42/45] Switch to -fPIE Signed-off-by: Peter Jones --- Make.defaults | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Make.defaults b/Make.defaults index 284819977ed..27d74a74954 100755 --- a/Make.defaults +++ b/Make.defaults @@ -192,10 +192,10 @@ endif INCDIR += -I$(SRCDIR) -I$(TOPDIR)/inc -I$(TOPDIR)/inc/$(ARCH) \ -I$(TOPDIR)/inc/protocol -# Only enable -fpic for non MinGW compilers (unneeded on MinGW) +# Only enable -fPIE for non MinGW compilers (unneeded on MinGW) GCCMACHINE := $(shell $(CC) -dumpmachine) ifneq (mingw32,$(findstring mingw32, $(GCCMACHINE))) - CFLAGS += -fpic + CFLAGS += -fPIE endif IS_FREEBSD = $(findstring FreeBSD, $(OS)) -- 2.24.1