diff options
author | Peter Jones <pjones@redhat.com> | 2019-11-19 13:23:14 -0500 |
---|---|---|
committer | Nigel Croxon <ncroxon@redhat.com> | 2023-03-28 08:38:58 -0400 |
commit | 368cdf1265372d46c6f66900419432059f93c125 (patch) | |
tree | 28b01d8f5f5f1b953a24928df79865c5843d68dd | |
parent | cc4ef911ee2ccd47411df410dc161a35b8b35d01 (diff) | |
download | gnu-efi-368cdf1265372d46c6f66900419432059f93c125.tar.gz |
Switch to -fPIE
Signed-off-by: Peter Jones <pjones@redhat.com>
-rwxr-xr-x | Make.defaults | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Make.defaults b/Make.defaults index a504f42..23e54c9 100755 --- a/Make.defaults +++ b/Make.defaults @@ -166,10 +166,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 ifeq (FreeBSD, $(findstring FreeBSD, $(OS))) |