eagle: fix CC=gcc and delete march=native (#17763)
This commit is contained in:
parent
416a929f7f
commit
8435016a43
@ -33,6 +33,13 @@ def edit(self, spec, prefix):
|
||||
# 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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user