pass CC variable to make (#30912)

Set CC to cc
This commit is contained in:
Joseph Wang 2022-05-30 14:44:31 +08:00 committed by GitHub
parent f67f3b1796
commit f583e471b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)