svn commit: r529042 - head/multimedia/libav
Piotr Kubaj
pkubaj at FreeBSD.org
Tue Mar 24 11:00:50 UTC 2020
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
More information about the svn-ports-all
mailing list