svn commit: r523228 - head/devel/llvm-devel

Brooks Davis brooks at FreeBSD.org
Thu Jan 16 13:08:58 UTC 2020


Author: brooks
Date: Thu Jan 16 13:08:57 2020
New Revision: 523228
URL: https://svnweb.freebsd.org/changeset/ports/523228

Log:
  Attempt to fix build on 11 (i386 and amd64) and 12 (i386).
  
  On the package builders, the bfd linker crashes when linking so force
  the use of lld.

Modified:
  head/devel/llvm-devel/Makefile

Modified: head/devel/llvm-devel/Makefile
==============================================================================
--- head/devel/llvm-devel/Makefile	Thu Jan 16 13:02:32 2020	(r523227)
+++ head/devel/llvm-devel/Makefile	Thu Jan 16 13:08:57 2020	(r523228)
@@ -276,6 +276,13 @@ CMAKE_ARGS+=	-DLLVM_ENABLE_PROJECTS="${LLVM_ENABLE_PRO
 .include <bsd.port.pre.mk>
 .include "${.CURDIR}/Makefile.COMMANDS"
 
+.if ${OPSYS} == "FreeBSD" && ${OSREL} < 13
+LDFLAGS_i386=-fuse-ld=lld
+.endif
+.if ${OPSYS} == "FreeBSD" && ${OSREL} < 12
+LDFLAGS_amd64=-fuse-ld=lld
+.endif
+
 .if defined(WITH_DEBUG)
 CMAKE_BUILD_TYPE=	RelWithDebInfo
 STRIP=


More information about the svn-ports-head mailing list