[vlc-commits] [Git][videolan/vlc][3.0.x] contrib/gnutls: fix AArch64 build on appleOS

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Thu Apr 14 16:05:13 UTC 2022



Hugo Beauzée-Luyssen pushed to branch 3.0.x at VideoLAN / VLC


Commits:
97612c39 by Felix Paul Kühne at 2022-04-14T13:44:29+00:00
contrib/gnutls: fix AArch64 build on appleOS

This introduces a patch to fix compilation on AArch64 on AppleOS, which
currently fails due to a compiler flag used by gnutls that is
unsupported by the latest version of clang (Apple clang version 13.1.6,
clang-1316.0.21.2) leading to a compiler crash if used.

This resolves the upstream tickets
https://gitlab.com/gnutls/gnutls/-/issues/1347 and
https://gitlab.com/gnutls/gnutls/-/issues/1317 for which the same patch
was already suggested.

(cherry picked from commit 85357e2d60e528d1b5d204f7a17b50123d1df27d)

- - - - -


2 changed files:

- + contrib/src/gnutls/gnutls-fix-aarch64-compilation-appleos.patch
- contrib/src/gnutls/rules.mak


Changes:

=====================================
contrib/src/gnutls/gnutls-fix-aarch64-compilation-appleos.patch
=====================================
@@ -0,0 +1,12 @@
+diff -ru gnutls/lib/accelerated/aarch64/Makefile.in gnutls/lib/accelerated/aarch64/Makefile.in
+--- gnutls/lib/accelerated/aarch64/Makefile.in	2021-05-24 10:05:49.000000000 +0200
++++ gnutls/lib/accelerated/aarch64/Makefile.in	2022-03-28 15:06:23.000000000 +0200
+@@ -1634,7 +1634,7 @@
+ 	-I$(srcdir)/../../ -I$(srcdir)/../ $(am__append_1)
+ 
+ #ensure that we have all aarch64 instruction sets enabled for the assembler
+-AM_CCASFLAGS = -Wa,-march=all
++AM_CCASFLAGS = -Wa
+ EXTRA_DIST = README
+ noinst_LTLIBRARIES = libaarch64.la
+ libaarch64_la_SOURCES = aarch64-common.c aarch64-common.h \


=====================================
contrib/src/gnutls/rules.mak
=====================================
@@ -41,6 +41,12 @@ gnutls: gnutls-$(GNUTLS_VERSION).tar.xz .sum-gnutls
 	$(APPLY) $(SRC)/gnutls/0001-fix-mingw64-detection.patch
 
 	$(call pkg_static,"lib/gnutls.pc.in")
+
+	# fix AArch64 builds for Apple OS by removing unsupported compiler flag (gnutls#1347, gnutls#1317)
+ifdef HAVE_DARWIN_OS
+	$(APPLY) $(SRC)/gnutls/gnutls-fix-aarch64-compilation-appleos.patch
+endif
+
 	$(UPDATE_AUTOCONFIG)
 	$(MOVE)
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/97612c39e1c89e1d5b15fe090de9170c3b4e7b4f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/97612c39e1c89e1d5b15fe090de9170c3b4e7b4f
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list