molden: Fix for aarch64 (#20549)
This commit is contained in:
parent
d86c345413
commit
f1d0ec7fc1
@ -0,0 +1,8 @@
|
||||
--- spack-src/src/xwin.c.bak 2020-09-18 19:13:33.000000000 +0900
|
||||
+++ spack-src/src/xwin.c 2020-12-23 16:06:13.764560722 +0900
|
||||
@@ -1,4 +1,4 @@
|
||||
-#ifndef DARWIN
|
||||
+#if 0
|
||||
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
|
||||
__asm__(".symver memmove,memmove@GLIBC_2.2.5");
|
||||
__asm__(".symver log,log@GLIBC_2.2.5");
|
@ -24,6 +24,9 @@ class Molden(MakefilePackage):
|
||||
depends_on('makedepend', type='build')
|
||||
|
||||
parallel = False # building in parallel is broken
|
||||
build_targets = ['clean', 'all']
|
||||
|
||||
patch('for_aarch64.patch', when='target=aarch64:')
|
||||
|
||||
def edit(self, spec, prefix):
|
||||
makefile = FileFilter('makefile')
|
||||
@ -53,5 +56,9 @@ def edit(self, spec, prefix):
|
||||
makefile.filter(r'CFLAGS = (.*)', r'CFLAGS = {0} \1'.format(cflags))
|
||||
makefile.filter(r'FFLAGS = (.*)', r'FFLAGS = {0} \1'.format(fflags))
|
||||
|
||||
if spec.target.family == 'aarch64':
|
||||
makefile.filter(r'AFLAG=*', r'AFLAG=')
|
||||
makefile.filter(r'rm -f src/', r'rm -f ')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
install_tree('bin', prefix.bin)
|
||||
|
Loading…
Reference in New Issue
Block a user