Add -fPIC to the standalone build flags on arm64. This is needed as

loader.efi is position independend, however we were not building it as
such causing a build failure when building with lld.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2017-04-07 14:30:51 +00:00
parent e7fca4bb42
commit 16e77e0036

View File

@ -19,7 +19,7 @@ CFLAGS.gcc+= -mpreferred-stack-boundary=2
CFLAGS+= -fPIC -mno-red-zone
.endif
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+= -mgeneral-regs-only
CFLAGS+= -fPIC -mgeneral-regs-only
.endif
.if ${MACHINE_CPUARCH} == "mips"
CFLAGS+= -G0 -fno-pic -mno-abicalls