svn commit: r321462 - head/share/mk
Andrew Turner
andrew at FreeBSD.org
Tue Jul 25 10:41:35 UTC 2017
Author: andrew
Date: Tue Jul 25 10:41:34 2017
New Revision: 321462
URL: https://svnweb.freebsd.org/changeset/base/321462
Log:
Build the 32-bit ARM libstand and loader parts with -fPIC. Many of them are
already built with this flag so libstand should also be build as such.
This will be needed when moving to lld as it refuses to link due to
incompatible relocations.
Sponsored by: DARPA, AFRL
Modified:
head/share/mk/bsd.stand.mk
Modified: head/share/mk/bsd.stand.mk
==============================================================================
--- head/share/mk/bsd.stand.mk Tue Jul 25 09:48:33 2017 (r321461)
+++ head/share/mk/bsd.stand.mk Tue Jul 25 10:41:34 2017 (r321462)
@@ -21,6 +21,9 @@ CFLAGS+= -fPIC -mno-red-zone
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+= -fPIC -mgeneral-regs-only
.endif
+.if ${MACHINE_CPUARCH} == "arm"
+CFLAGS+= -fPIC
+.endif
.if ${MACHINE_CPUARCH} == "mips"
CFLAGS+= -G0 -fno-pic -mno-abicalls
.endif
More information about the svn-src-all
mailing list