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 2017-04-07 14:30:51 +00:00
parent fc2648bb76
commit 3e338288bc

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