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
This commit is contained in:
parent
f625ccc2cf
commit
ed84ccc48f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=566384
@ -626,10 +626,13 @@ DOC_FILES= Changelog CREDITS INSTALL.md LICENSE.md MAINTAINERS \
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user