From b8c18068c2cc2afe169c750f25318c6ba92e2763 Mon Sep 17 00:00:00 2001 From: t-karatsu <49965247+t-karatsu@users.noreply.github.com> Date: Mon, 25 Nov 2019 23:14:18 +0900 Subject: prank: use Spack compilers and remove x86_64 opts from Makefile (#13877) --- var/spack/repos/builtin/packages/prank/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/prank/package.py b/var/spack/repos/builtin/packages/prank/package.py index d45eadb028..7901d627b1 100644 --- a/var/spack/repos/builtin/packages/prank/package.py +++ b/var/spack/repos/builtin/packages/prank/package.py @@ -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) -- cgit v1.2.3-70-g09d2