summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-06-01 10:30:47 +0200
committerGitHub <noreply@github.com>2018-06-01 10:30:47 +0200
commit16fb10bc7e6e77935b745a3e39091271c3594781 (patch)
tree95e925e276dae2bb862b9d798cef321b0563c6c0
parented64b8dace511d002c748ae17408fe40dff0ae9f (diff)
downloadspack-16fb10bc7e6e77935b745a3e39091271c3594781.tar.gz
spack-16fb10bc7e6e77935b745a3e39091271c3594781.tar.bz2
spack-16fb10bc7e6e77935b745a3e39091271c3594781.tar.xz
spack-16fb10bc7e6e77935b745a3e39091271c3594781.zip
subread: use compiler wrappers when compiling (#8328)
-rw-r--r--var/spack/repos/builtin/packages/subread/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/subread/package.py b/var/spack/repos/builtin/packages/subread/package.py
index 1fdf52d4da..1bc36ddb13 100644
--- a/var/spack/repos/builtin/packages/subread/package.py
+++ b/var/spack/repos/builtin/packages/subread/package.py
@@ -43,6 +43,11 @@ class Subread(MakefilePackage):
plat = sys.platform
with working_dir('src'):
if plat.startswith('linux'):
+ filter_file(
+ 'CC_EXEC = gcc',
+ 'CC_EXEC = {0}'.format(spack_cc),
+ 'Makefile.Linux'
+ )
make('-f', 'Makefile.Linux')
elif plat.startswith('darwin'):
make('-f', 'Makefile.MacOS')