singular: disable vspace on aarch64

This commit is contained in:
Mauricio Collares 2021-04-21 23:53:20 -03:00 committed by Masanori Ogino
parent cd7cf5942b
commit 090165d7c1
2 changed files with 18 additions and 0 deletions

View File

@ -52,6 +52,9 @@ stdenv.mkDerivation rec {
# add aarch64 support to cpu-check.m4. copied from redhat.
./redhat-aarch64.patch
# vspace causes hangs in modstd and other libraries on aarch64
./disable-vspace-on-aarch64.patch
# the newest version of ax-prog-cc-for-build.m4 seems to trigger
# linker errors. see
# https://github.com/alsa-project/alsa-firmware/issues/3 for a

View File

@ -0,0 +1,15 @@
diff --git a/kernel/mod2.h b/kernel/mod2.h
index 867fcae47..2abd84f23 100644
--- a/kernel/mod2.h
+++ b/kernel/mod2.h
@@ -60,8 +60,10 @@
/* define for parallel processes with shared memory */
#ifndef __CCYGWIN__
+#ifndef SI_CPU_AARCH64
#define HAVE_VSPACE 1
#endif
+#endif
/*#define PROFILING*/
#ifdef PROFILING