From 7f18a5826e73652a8960e81bd445f20e8c026b02 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Tue, 24 Mar 2020 10:55:12 +0000 Subject: [PATCH] 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. --- multimedia/libav/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/multimedia/libav/Makefile b/multimedia/libav/Makefile index c6a5a2c1980a..b04c79617862 100644 --- a/multimedia/libav/Makefile +++ b/multimedia/libav/Makefile @@ -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 @@ -187,6 +186,12 @@ 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 .if ${PORT_OPTIONS:MFAAC} || ${PORT_OPTIONS:MFDK_AAC} || ${PORT_OPTIONS:MOPENSSL}