mirror of https://github.com/ncroxon/gnu-efi
Switch to -fPIE
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
cc4ef911ee
commit
368cdf1265
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue