From 28fa95152f7978101957930f6d6581575b79986a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 10 Feb 2017 01:44:51 +0100 Subject: [PATCH] libopenal: fix armv6* Inlining of gcc6 arm_neon.h functions fails because they are called indirectly, which isn't allowed for always_inline functions. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63220 As a workaround, make the arm_neon.h detection fail for armv6* --- srcpkgs/libopenal/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/libopenal/template b/srcpkgs/libopenal/template index f202afa4814..8f8ffd8537f 100644 --- a/srcpkgs/libopenal/template +++ b/srcpkgs/libopenal/template @@ -1,7 +1,7 @@ # Template file for 'libopenal' pkgname=libopenal version=1.17.2 -revision=3 +revision=4 build_style=cmake wrksrc="openal-soft-${version}" hostmakedepends="pkg-config" @@ -13,6 +13,14 @@ homepage="http://kcat.strangesoft.net/openal.html" distfiles="http://kcat.strangesoft.net/openal-releases/openal-soft-${version}.tar.bz2" checksum=a341f8542f1f0b8c65241a17da13d073f18ec06658e1a1606a8ecc8bbc2b3314 +pre_configure() { + case "$XBPS_TARGET_MACHINE" in + armv6*) # Hack to not compile (broken) arm_neon.h inlining of indirect function calls + sed -i CMakeLists.txt -e"s;arm_neon.h;arm_neon.xxx;" + ;; + esac +} + post_install() { rm -f ${DESTDIR}/usr/share/openal/alsoftrc.sample vsconf alsoftrc.sample