Date: Tue, 25 Jul 2017 10:41:34 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r321462 - head/share/mk Message-ID: <201707251041.v6PAfYIT026255@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707251041.v6PAfYIT026255>