Attempt to work around a problem with binutils not liking the armv6 code

generated buy LLVM 7.

PR:		235282
This commit is contained in:
Brooks Davis 2019-02-06 19:01:23 +00:00
parent e2fa8c5b0d
commit a96b8ce400
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=492319

View file

@ -300,6 +300,12 @@ MAN1SRCS+= bugpoint.1 dsymutil.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \
.include <bsd.port.pre.mk>
# Use lld for armv6 on clang 7 and up to avoid binutils ld issues
# PR: 235282
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 70
LDFLAGS_armv6=-fuse-ld=lld
.endif
_CRTLIBDIR= ${LLVM_PREFIX:S|${PREFIX}/||}/lib/clang/${LLVM_RELEASE}/lib/freebsd
_CRTBLDIR= ${LLVM_PREFIX:S|${PREFIX}/||}/share
_COMPILER_RT_BLACKLISTS= cfi_blacklist.txt