svn commit: r514175 - head/devel/llvm70

Brooks Davis brooks at FreeBSD.org
Wed Oct 9 17:41:23 UTC 2019


Author: brooks
Date: Wed Oct  9 17:41:22 2019
New Revision: 514175
URL: https://svnweb.freebsd.org/changeset/ports/514175

Log:
  ttempt to work around a problem with binutils not liking the armv6 code
  generated by LLVM 7.
  
  PR:		235282
  Requested by:	jbeich

Modified:
  head/devel/llvm70/Makefile

Modified: head/devel/llvm70/Makefile
==============================================================================
--- head/devel/llvm70/Makefile	Wed Oct  9 17:29:40 2019	(r514174)
+++ head/devel/llvm70/Makefile	Wed Oct  9 17:41:22 2019	(r514175)
@@ -208,6 +208,12 @@ MAN1SRCS+=	bugpoint.1 dsymutil.1 llc.1 lli.1 llvm-ar.1
 .include <bsd.port.pre.mk>
 .include "${.CURDIR}/Makefile.COMMANDS"
 
+# 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


More information about the svn-ports-head mailing list