diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/flexi/for_aarch64.patch | 9 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/flexi/package.py | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flexi/for_aarch64.patch b/var/spack/repos/builtin/packages/flexi/for_aarch64.patch new file mode 100644 index 0000000000..4b8efe13ad --- /dev/null +++ b/var/spack/repos/builtin/packages/flexi/for_aarch64.patch @@ -0,0 +1,9 @@ +--- spack-src/tools/userblock/generateuserblock.sh.org 2021-03-05 15:27:48.635287742 +0900 ++++ spack-src/tools/userblock/generateuserblock.sh 2021-03-05 15:29:31.995593495 +0900 +@@ -108,5 +108,5 @@ + tar cJf userblock.tar.xz userblock.txt + + # Build the module +-objcopy -I binary -O elf64-x86-64 -B i386 --redefine-sym _binary_userblock_tar_xz_start=userblock_start --redefine-sym _binary_userblock_tar_xz_end=userblock_end --redefine-sym _binary_userblock_tar_xz_size=userblock_size userblock.tar.xz userblock.o ++objcopy -I binary -O elf64-littleaarch64 -B aarch64 --redefine-sym _binary_userblock_tar_xz_start=userblock_start --redefine-sym _binary_userblock_tar_xz_end=userblock_end --redefine-sym _binary_userblock_tar_xz_size=userblock_size userblock.tar.xz userblock.o + rm userblock.tar.xz diff --git a/var/spack/repos/builtin/packages/flexi/package.py b/var/spack/repos/builtin/packages/flexi/package.py index 886400ae44..a4e9aee3ea 100644 --- a/var/spack/repos/builtin/packages/flexi/package.py +++ b/var/spack/repos/builtin/packages/flexi/package.py @@ -15,6 +15,8 @@ class Flexi(CMakePackage): version('master') + patch('for_aarch64.patch', when='target=aarch64:') + variant('mpi', default=True, description='Enable MPI') depends_on('mpi', when='+mpi') |