svn commit: r566384 - head/multimedia/ffmpeg

Piotr Kubaj pkubaj at FreeBSD.org
Tue Feb 23 09:35:50 UTC 2021


Author: pkubaj
Date: Tue Feb 23 09:35:49 2021
New Revision: 566384
URL: https://svnweb.freebsd.org/changeset/ports/566384

Log:
  multimedia/ffmpeg: use clang from ports with bfd on powerpc64 with LTO option
  
  Turns out that clang can build proper binaries when using LTO, if bfd is
  used instead of lld.
  
  LLVM from ports is necessary because LLVMgold.so is not present in base.
  
  Approved by:    tier 2 blanket

Modified:
  head/multimedia/ffmpeg/Makefile

Modified: head/multimedia/ffmpeg/Makefile
==============================================================================
--- head/multimedia/ffmpeg/Makefile	Tue Feb 23 09:30:06 2021	(r566383)
+++ head/multimedia/ffmpeg/Makefile	Tue Feb 23 09:35:49 2021	(r566384)
@@ -626,10 +626,13 @@ DOC_FILES=	Changelog CREDITS INSTALL.md LICENSE.md MAI
 DOC_DOCFILES=	APIchanges *.txt
 PORTDOCS=	*
 
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
 
-.if ${ARCH} == powerpc64 && ${PORT_OPTIONS:MLTO}
-USE_GCC=	yes
+.if ${ARCH} == powerpc64 && ${PORT_OPTIONS:MLTO} && ${CHOSEN_COMPILER_TYPE} == clang
+CPP=		${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT}
+CC=		${LOCALBASE}/bin/clang${LLVM_DEFAULT}
+BUILD_DEPENDS+=	${LOCALBASE}/bin/clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
+LLD_UNSAFE=	yes
 .endif
 
 post-install:
@@ -638,4 +641,4 @@ post-install:
 	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \
 		"${DOC_DOCFILES}" ${STAGEDIR}${DOCSDIR})
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list