aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-pynacl/ppc64le-disable-configure-segfaultcheck.patch
blob: ccc61af682a1ba1d153ee29426019b2707bb58c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/src/libsodium/configure
+++ b/src/libsodium/configure
@@ -8742,7 +8742,11 @@
 signal(SIGSEGV, sig);
 signal(SIGBUS, sig);
 #if !defined(__SANITIZE_ADDRESS__) && !defined(__EMSCRIPTEN__)
+#ifndef __powerpc64__
 for (i = 0; i < 10000000; i += 1024) { x[-i] = x[i] = (unsigned char) i; }
+#else
+exit(0);
+#endif
 #endif
 free((void *) x);
 exit(1)