vc: update to 1.4.2.

This commit is contained in:
Arda Demir 2021-08-01 11:52:23 +03:00 committed by Érico Nogueira Rolim
parent 11ce41d3ed
commit f0a555a530
2 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,31 @@
From dea29a67bd5b7523da7678eb5b37f42c0e2759b7 Mon Sep 17 00:00:00 2001
From: Bernhard Manfred Gruber <bernhardmgruber@gmail.com>
Date: Fri, 25 Jun 2021 14:24:23 +0200
Subject: [PATCH] support GCC standard libraries which do not define
__GLIBC_PREREQ
---
Vc/global.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Vc/global.h b/Vc/global.h
index 6f85b3ce2..d19dc45c2 100644
--- a/Vc/global.h
+++ b/Vc/global.h
@@ -132,10 +132,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endif
#ifdef Vc_GCC
-# if Vc_GCC >= 0x70000 && defined __i386__ && (!defined __GLIBC_PREREQ || !__GLIBC_PREREQ(2,26))
+# if Vc_GCC >= 0x70000 && defined __i386__
// GCC 7 changed alignof(max_align_t) to 16. glibc 2.26 followed with malloc in 2.26.
// 1. If GCC >= 7 and libc is not glibc max_align_t and malloc mismatch
// 2. If GCC >= 7 and libc is glibc < 2.26 max_align_t and malloc mismatch
+# ifdef __GLIBC_PREREQ
+# if __GLIBC_PREREQ(2,26)
+# define Vc_HAVE_STD_MAX_ALIGN_T 1
+# endif
+# endif
# elif Vc_GCC >= 0x40900
# define Vc_HAVE_STD_MAX_ALIGN_T 1
# else

View File

@ -1,6 +1,6 @@
# Template file for 'vc'
pkgname=vc
version=1.4.1
version=1.4.2
revision=1
wrksrc="Vc-${version}"
build_style=cmake
@ -10,7 +10,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/VcDevel/Vc"
distfiles="${homepage}/releases/download/${version}/Vc-${version}.tar.gz"
checksum=68e609a735326dc3625e98bd85258e1329fb2a26ce17f32c432723b750a4119f
checksum=50d3f151e40b0718666935aa71d299d6370fafa67411f0a9e249fbce3e6e3952
post_install() {
vlicense LICENSE