[FFmpeg-devel] [PATCH] fix(configure): fix detection on windows arm64
Coia Prant
coiaprant at gmail.com
Mon May 12 08:59:37 EEST 2025
On Windows Arm64
`uname -m` returned `x86_64` instead of `aarch64`
Link: https://github.com/msys2/msys2-runtime/issues/171
But `uname -s` contains `ARM64` suffix
So check suffix on windows arm64 (for clangarm64)
This problem also in VideoLAN/x264
Link: https://code.videolan.org/videolan/x264/-/merge_requests/177
Signed-off-by: Coia Prant <coiaprant at gmail.com>
---
configure | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configure b/configure
index 2e69b3c..d8c1e09 100755
--- a/configure
+++ b/configure
@@ -4157,6 +4157,8 @@ if test "$target_os_default" = aix; then
arch_default=$(uname -p)
strip_default="strip -X32_64"
nm_default="nm -g -X32_64"
+elif [[ "$target_os_default" == "mingw"*"arm64" ]] || [[ "$target_os_default" == "msys"*"arm64" ]]; then
+ arch_default="aarch64"
else
arch_default=$(uname -m)
fi
--
2.47.1
More information about the ffmpeg-devel
mailing list