From 8435016a43d345aa22c8d4becf3fa4cc4c3b4464 Mon Sep 17 00:00:00 2001 From: ketsubouchi <67359246+ketsubouchi@users.noreply.github.com> Date: Thu, 30 Jul 2020 10:28:31 +0900 Subject: eagle: fix CC=gcc and delete march=native (#17763) --- var/spack/repos/builtin/packages/eagle/package.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/var/spack/repos/builtin/packages/eagle/package.py b/var/spack/repos/builtin/packages/eagle/package.py index 81e0be6f90..0509f32cd4 100644 --- a/var/spack/repos/builtin/packages/eagle/package.py +++ b/var/spack/repos/builtin/packages/eagle/package.py @@ -33,6 +33,13 @@ class Eagle(MakefilePackage): # add htslib link to ldflags filter_file('-lcurl', '-lcurl -lhts', 'Makefile', string=True) + # use spack C compiler + filter_file('CC=.*', 'CC={0}'.format(spack_cc), 'Makefile') + + # remove march=native %fj + if self.spec.satisfies('%fj'): + filter_file('-march=native', '', 'Makefile', string=True) + def install(self, spec, prefix): mkdirp(prefix.bin) -- cgit v1.2.3-70-g09d2