From 250c07e6319fe106e456d56c09698dc978a75ad0 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Mon, 19 Jan 2026 12:39:57 +0800 Subject: [PATCH] FFmpeg: pass minimum deployment target as extra compiler flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When building on iOS, the minimum deployment target was only declared as linker flags for the libary. However the flags can affect the run-time features by potentially enabling APIs or affecting codegen if the compiler can assume that certain CPU features are present. We should therefore pass the minimum deployment target as compiler flags as well as linker flag. Pick-to: 6.10 6.8 6.5 Change-Id: If9b96fb31bf4173da2e4c574c1c080be075851b8 Reviewed-by: Nils Petter Skålerud Reviewed-by: Artem Dyomin (cherry picked from commit 1a9daf1574bfb799877627ebce2f0f0ce5eb5e8f) Reviewed-by: Qt Cherry-pick Bot --- coin/provisioning/common/unix/install-ffmpeg-ios.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coin/provisioning/common/unix/install-ffmpeg-ios.sh b/coin/provisioning/common/unix/install-ffmpeg-ios.sh index d6e24e1f..a936b77c 100755 --- a/coin/provisioning/common/unix/install-ffmpeg-ios.sh +++ b/coin/provisioning/common/unix/install-ffmpeg-ios.sh @@ -53,6 +53,9 @@ build_ffmpeg_ios() { --cc="xcrun --sdk ${target_sdk} clang -arch $target_cpu_arch" \ --cxx="xcrun --sdk ${target_sdk} clang++ -arch $target_cpu_arch" \ --target-os=darwin \ + --extra-cflags="$minos" \ + --extra-cxxflags="$minos" \ + --extra-objcflags="$minos" \ --extra-ldflags="$minos" \ --enable-shared \ --disable-static \