ffmpeg7: try to fix gcc2 build

This commit is contained in:
Jérôme Duval
2025-10-21 07:29:06 +02:00
committed by GitHub
parent 37b7b04712
commit 90a505a373

View File

@@ -240,7 +240,7 @@ BUILD()
cc="gcc${gccSuffix/_/-}"
ccArgs="--cc=$cc --cxx=g++${secondaryArchSuffix/_/-}
--ld=gcc${secondaryArchSuffix/_/-}
--host-ld=gcc${secondaryArchSuffix/_/-} -fno-builtin-popcount"
--host-ld=gcc${secondaryArchSuffix/_/-}"
# 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"
export CFLAGS="-isystem$(pwd) -isystem$(pwd)/os -isystem$(pwd)/config -fno-builtin-popcount"
export LDFLAGS="$baseLDFLAGS $(pwd)/gcc_runtime.o"
extraArgs="--disable-asm"
else