diff --git a/var/spack/repos/builtin/packages/openmx/for_aarch64.patch b/var/spack/repos/builtin/packages/openmx/for_aarch64.patch new file mode 100644 index 0000000000..33a80bf8ab --- /dev/null +++ b/var/spack/repos/builtin/packages/openmx/for_aarch64.patch @@ -0,0 +1,11 @@ +--- spack-src/source/Krylov.c.bak 2016-03-27 15:53:28.000000000 +0900 ++++ spack-src/source/Krylov.c 2021-01-28 15:31:32.660274698 +0900 +@@ -29,7 +29,7 @@ + #ifdef nosse + #include "mimic_sse.h" + #else +-#include ++#include + #endif + + #ifdef kcomp diff --git a/var/spack/repos/builtin/packages/openmx/package.py b/var/spack/repos/builtin/packages/openmx/package.py index 89e2ad40be..f6a313c27b 100644 --- a/var/spack/repos/builtin/packages/openmx/package.py +++ b/var/spack/repos/builtin/packages/openmx/package.py @@ -25,6 +25,9 @@ class Openmx(MakefilePackage): depends_on('fftw') depends_on('blas') depends_on('lapack') + depends_on('sse2neon', when='target=aarch64:') + + patch('for_aarch64.patch', when='@3.8 target=aarch64:') parallel = False