From aae59f48669e284c5a95fd2e5c67b3f7454ef8ac Mon Sep 17 00:00:00 2001
From: noguchi-k <55966120+noguchi-k@users.noreply.github.com>
Date: Mon, 2 Mar 2020 23:05:31 +0900
Subject: [PATCH] lastz: set compile commands for each compiler (#15284)

---
 var/spack/repos/builtin/packages/lastz/package.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/var/spack/repos/builtin/packages/lastz/package.py b/var/spack/repos/builtin/packages/lastz/package.py
index e590aec533..d01068df51 100644
--- a/var/spack/repos/builtin/packages/lastz/package.py
+++ b/var/spack/repos/builtin/packages/lastz/package.py
@@ -17,5 +17,9 @@ class Lastz(MakefilePackage):
     # cast from char to signed char
     patch('cast_signed_char.patch')
 
+    # set compile commands for each compiler
+    def edit(self, spec, prefix):
+        filter_file('gcc', spack_cc, 'src/Makefile')
+
     def install(self, spec, prefix):
         make('install', 'LASTZ_INSTALL={0}'.format(prefix.bin))
-- 
GitLab