multimedia/ffmpeg: fix runtime on powerpc64 elfv2 with LTO

ffmpeg crashes instantly when built with LTO by clang on powerpc64.
This commit is contained in:
Piotr Kubaj 2020-08-22 00:46:58 +00:00
parent 60a48b1afc
commit 2538022fb4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545727

View file

@ -630,6 +630,12 @@ DOC_FILES= Changelog CREDITS INSTALL.md LICENSE.md MAINTAINERS \
DOC_DOCFILES= APIchanges *.txt
PORTDOCS= *
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc64 && ${PORT_OPTIONS:MLTO}
USE_GCC= yes
.endif
post-patch:
# {C,LD}FLAGS safeness
@${REINPLACE_CMD} -E \