1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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.
This commit is contained in:
Piotr Kubaj 2020-03-24 10:55:12 +00:00
parent c7aea00434
commit 7f18a5826e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=529042

View File

@ -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}