From d9277983aa8b345535946a2ead7c9c76a2e3b739 Mon Sep 17 00:00:00 2001 From: Popvue Date: Thu, 22 Oct 2026 18:49:44 +0000 Subject: [PATCH 6/8] Popvue: libvlc patch for libgcrypt on the x86_64 simulator --- ...o-Win64-assembly-on-the-x86_64-iOS-s.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 libvlc/patches/0052-contrib-gcrypt-no-Win64-assembly-on-the-x86_64-iOS-s.patch diff --git a/libvlc/patches/0052-contrib-gcrypt-no-Win64-assembly-on-the-x86_64-iOS-s.patch b/libvlc/patches/0052-contrib-gcrypt-no-Win64-assembly-on-the-x86_64-iOS-s.patch new file mode 100644 index 00000000..ea6d20d8 --- /dev/null +++ b/libvlc/patches/0052-contrib-gcrypt-no-Win64-assembly-on-the-x86_64-iOS-s.patch @@ -0,0 +1,33 @@ +From af1c0472d24a284c0c1e26feb1cc697b4a1b8ff7 Mon Sep 17 00:00:00 2001 +From: Popvue +Date: Thu, 22 Oct 2026 18:49:44 +0000 +Subject: [PATCH] contrib: gcrypt: no Win64 assembly on the x86_64 iOS + simulator + +Newer clang passes libgcrypt's Windows x64 assembler test on macOS, so the AES code takes its +Win64 path, whose 32-bit absolute addressing it then rejects in 64-bit mode. +--- + contrib/src/gcrypt/rules.mak | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/contrib/src/gcrypt/rules.mak b/contrib/src/gcrypt/rules.mak +index e7cc790295..a856fb81bd 100644 +--- a/contrib/src/gcrypt/rules.mak ++++ b/contrib/src/gcrypt/rules.mak +@@ -56,6 +56,13 @@ ifeq ($(ARCH), x86_64) + GCRYPT_CONF += --disable-asm --enable-ciphers=des,rfc2268,arcfour --enable-digests=md5,sha1,rmd160 + endif + endif ++ifdef HAVE_IOS ++ifeq ($(ARCH), x86_64) ++# the x86_64 simulator: newer clang passes the Windows x64 assembler test, so the AES code ++# takes its Win64 path, whose 32-bit absolute addressing it then rejects ++GCRYPT_CONF += gcry_cv_gcc_win64_platform_as_ok=no ++endif ++endif + ifdef HAVE_MACOSX + GCRYPT_CONF += --disable-aesni-support + ifeq ($(ARCH),aarch64) +-- +2.50.1 (Apple Git-155) + -- 2.50.1 (Apple Git-155)