From 43e12f9518dc04f071edfb6508c781121ef3a7dc Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 15 Dec 2019 18:00:11 +0100 Subject: [PATCH] nss: fix build on altivec-but-no-vsx setups --- srcpkgs/nss/patches/ppc64-no-vsx.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/nss/patches/ppc64-no-vsx.patch diff --git a/srcpkgs/nss/patches/ppc64-no-vsx.patch b/srcpkgs/nss/patches/ppc64-no-vsx.patch new file mode 100644 index 0000000000..0f03b7c5e6 --- /dev/null +++ b/srcpkgs/nss/patches/ppc64-no-vsx.patch @@ -0,0 +1,14 @@ +The header contains vectors of long long, which are only available with the +VSX instruction set. We don't compile with VSX on big endian systems. + +--- nss/lib/freebl/gcm.h ++++ nss/lib/freebl/gcm.h +@@ -30,7 +30,7 @@ + #include + #endif + +-#ifdef __powerpc64__ ++#if defined(__powerpc64__) && defined(__VSX__) + #include "altivec-types.h" + + /* The ghash freebl test tries to use this in C++, and gcc defines conflict. */