svn commit: r316608 - head/share/mk
Andrew Turner
andrew at FreeBSD.org
Fri Apr 7 14:30:53 UTC 2017
Author: andrew
Date: Fri Apr 7 14:30:51 2017
New Revision: 316608
URL: https://svnweb.freebsd.org/changeset/base/316608
Log:
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
Modified:
head/share/mk/bsd.stand.mk
Modified: head/share/mk/bsd.stand.mk
==============================================================================
--- head/share/mk/bsd.stand.mk Fri Apr 7 12:41:57 2017 (r316607)
+++ head/share/mk/bsd.stand.mk Fri Apr 7 14:30:51 2017 (r316608)
@@ -19,7 +19,7 @@ CFLAGS.gcc+= -mpreferred-stack-boundary=
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
More information about the svn-src-all
mailing list