Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2019 17:41:22 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r514175 - head/devel/llvm70
Message-ID:  <201910091741.x99HfM5g013865@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910091741.x99HfM5g013865>