summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Wang <joequant@gmail.com>2022-05-30 14:44:31 +0800
committerGitHub <noreply@github.com>2022-05-30 08:44:31 +0200
commitf583e471b86444f5dcbb83f3751db7fb835ab0be (patch)
tree764706717b39c67f3995ea932e8f2667e7061bb1
parentf67f3b1796b0066085e94bea49c1762c5c68080a (diff)
downloadspack-f583e471b86444f5dcbb83f3751db7fb835ab0be.tar.gz
spack-f583e471b86444f5dcbb83f3751db7fb835ab0be.tar.bz2
spack-f583e471b86444f5dcbb83f3751db7fb835ab0be.tar.xz
spack-f583e471b86444f5dcbb83f3751db7fb835ab0be.zip
pass CC variable to make (#30912)
Set CC to cc
-rw-r--r--var/spack/repos/builtin/packages/pigz/package.py4
1 files changed, 3 insertions, 1 deletions
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)