svn commit: r502329 - head/devel/llvm60

Antoine Brodin antoine at FreeBSD.org
Thu May 23 09:12:35 UTC 2019


Author: antoine
Date: Thu May 23 09:12:33 2019
New Revision: 502329
URL: https://svnweb.freebsd.org/changeset/ports/502329

Log:
  Attempt to work around a problem with binutils not liking the armv6 code
  generated by LLVM 7.
  
  PR:		235282
  With hat:	portmgr

Modified:
  head/devel/llvm60/Makefile

Modified: head/devel/llvm60/Makefile
==============================================================================
--- head/devel/llvm60/Makefile	Thu May 23 09:01:39 2019	(r502328)
+++ head/devel/llvm60/Makefile	Thu May 23 09:12:33 2019	(r502329)
@@ -256,6 +256,12 @@ _COMPILER_RT_LIBS+= \
 CXXFLAGS+=	-D_GLIBCXX_USE_C99
 .endif
 
+# 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
+
 .if ${ARCH} == "armv6"
 BUILD_DEPENDS+=	${LOCALBASE}/bin/ld:devel/binutils
 CONFIGURE_ENV+=	COMPILER_PATH=${LOCALBASE}/bin


More information about the svn-ports-all mailing list