svn commit: r528648 - head/multimedia/x264

Piotr Kubaj pkubaj at FreeBSD.org
Wed Mar 18 13:53:36 UTC 2020


Author: pkubaj
Date: Wed Mar 18 13:53:34 2020
New Revision: 528648
URL: https://svnweb.freebsd.org/changeset/ports/528648

Log:
  multimedia/x264: fix build on powerpc64 elfv2
  
  Clang has the same problem with x264 that happened with security/nss (workaround in r528305).
  It takes all available memory due to infinite loop. Switch to GCC for now to fix build.

Modified:
  head/multimedia/x264/Makefile

Modified: head/multimedia/x264/Makefile
==============================================================================
--- head/multimedia/x264/Makefile	Wed Mar 18 13:09:25 2020	(r528647)
+++ head/multimedia/x264/Makefile	Wed Mar 18 13:53:34 2020	(r528648)
@@ -98,6 +98,12 @@ CONFIGURE_ARGS+=	--prefix="${PREFIX}" \
 			--extra-cflags="${CPPFLAGS} ${CFLAGS}" \
 			--extra-ldflags="${LDFLAGS}"
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == powerpc64
+USE_GCC=	yes
+.endif
+
 post-extract-PGO-on:
 	@${BZIP2_CMD} -dc ${DISTDIR}/${DIST_SUBDIR}/${Y4M_VIDEO_DISTFILE} \
 		>${WRKDIR}/${Y4M_VIDEO}
@@ -117,4 +123,4 @@ pre-build:
 	@(${RM} ${WRKSRC}/x264_config.h)
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list