prank: use Spack compilers and remove x86_64 opts from Makefile (#13877)
This commit is contained in:
parent
3a94c032c7
commit
b8c18068c2
@ -21,6 +21,15 @@ class Prank(Package):
|
||||
|
||||
def install(self, spec, prefix):
|
||||
with working_dir('src'):
|
||||
|
||||
filter_file('gcc', '{0}'.format(spack_cc),
|
||||
'Makefile', string=True)
|
||||
filter_file('g++', '{0}'.format(spack_cxx),
|
||||
'Makefile', string=True)
|
||||
if not spec.target.family == 'x86_64':
|
||||
filter_file('-m64', '', 'Makefile', string=True)
|
||||
filter_file('-pipe', '', 'Makefile', string=True)
|
||||
|
||||
make()
|
||||
mkdirp(prefix.bin)
|
||||
install('prank', prefix.bin)
|
||||
|
Loading…
Reference in New Issue
Block a user