Date: Fri, 7 Apr 2017 14:30:52 +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: r316608 - head/share/mk Message-ID: <201704071430.v37EUqtn089002@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704071430.v37EUqtn089002>