Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2020 10:55:12 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r529042 - head/multimedia/libav
Message-ID:  <202003241055.02OAtCq5039857@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Tue Mar 24 10:55:12 2020
New Revision: 529042
URL: https://svnweb.freebsd.org/changeset/ports/529042

Log:
  multimedia/libav: fix build on powerpc64 elfv2
  
  Like some other ports, this port, when compiling with clang 10 on powerpc64, makes cc take the whole memory available and crash the system. Build with GCC instead on powerpc64.

Modified:
  head/multimedia/libav/Makefile

Modified: head/multimedia/libav/Makefile
==============================================================================
--- head/multimedia/libav/Makefile	Tue Mar 24 10:49:35 2020	(r529041)
+++ head/multimedia/libav/Makefile	Tue Mar 24 10:55:12 2020	(r529042)
@@ -20,8 +20,7 @@ LIB_DEPENDS=	libopencv_core.so:graphics/opencv-core \
 		libvdpau.so:multimedia/libvdpau \
 		libhogweed.so:security/nettle
 
-USES=		cpe compiler:c++11-lang gmake localbase perl5 pkgconfig tar:xz \
-		xorg
+USES=		cpe gmake localbase perl5 pkgconfig tar:xz xorg
 
 USE_XORG=	x11
 USE_PERL5=	build
@@ -185,6 +184,12 @@ CONFIGURE_ENV+=	ASFLAGS=-no-integrated-as
 .if ${ARCH} == "i386"
 CONFIGURE_ARGS+=	--extra-cflags=-m32
 LLD_UNSAFE=	yes
+.endif
+
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
+USE_GCC=	yes
+.else
+USES+=	compiler:c++11-lang
 .endif
 
 # License definitions



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003241055.02OAtCq5039857>