From f583e471b86444f5dcbb83f3751db7fb835ab0be Mon Sep 17 00:00:00 2001 From: Joseph Wang Date: Mon, 30 May 2022 14:44:31 +0800 Subject: [PATCH] pass CC variable to make (#30912) Set CC to cc --- var/spack/repos/builtin/packages/pigz/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/pigz/package.py b/var/spack/repos/builtin/packages/pigz/package.py index 2252a90fbc..ed2eecce0e 100644 --- a/var/spack/repos/builtin/packages/pigz/package.py +++ b/var/spack/repos/builtin/packages/pigz/package.py @@ -21,7 +21,9 @@ class Pigz(MakefilePackage): depends_on('zlib') def build(self, spec, prefix): - make() + # force makefile to use cc as C compiler which is set by + # spack + make('CC=cc') def install(self, spec, prefix): mkdirp(prefix.bin)