From 929a378e08ffa751b32e8578ec7a0204b28c9431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 21 Oct 2025 07:45:00 +0200 Subject: [PATCH] ffmpeg7: try to fix gcc2 build --- media-video/ffmpeg/ffmpeg7-7.1.2.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media-video/ffmpeg/ffmpeg7-7.1.2.recipe b/media-video/ffmpeg/ffmpeg7-7.1.2.recipe index 06063331e..59b602400 100644 --- a/media-video/ffmpeg/ffmpeg7-7.1.2.recipe +++ b/media-video/ffmpeg/ffmpeg7-7.1.2.recipe @@ -240,7 +240,7 @@ BUILD() cc="gcc${gccSuffix/_/-}" ccArgs="--cc=$cc --cxx=g++${secondaryArchSuffix/_/-} --ld=gcc${secondaryArchSuffix/_/-} - --host-ld=gcc${secondaryArchSuffix/_/-}" + --host-ld=gcc${secondaryArchSuffix/_/-} --extra-cflags=-fno-builtin-popcount" # Hack up base headers to make them think we're on GCC2 ABI mkdir -p include_hacks include_hacks/os include_hacks/config @@ -257,7 +257,7 @@ BUILD() baseLDFLAGS="-B/system/bin/${gccSuffix/_/}" ccArgs="$ccArgs --host-ldflags=\"${baseLDFLAGS}\"" - export CFLAGS="-isystem$(pwd) -isystem$(pwd)/os -isystem$(pwd)/config -fno-builtin-popcount" + export CFLAGS="-isystem$(pwd) -isystem$(pwd)/os -isystem$(pwd)/config" export LDFLAGS="$baseLDFLAGS $(pwd)/gcc_runtime.o" extraArgs="--disable-asm" else