lmdb package: Fix build with other compilers (#23704)

lmdb hardcodes gcc in its Makefile, so override it.
This commit is contained in:
Michael Kuhn 2021-05-19 02:18:48 +02:00 committed by GitHub
parent 79d8691dde
commit f0d5d992e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,10 @@ class Lmdb(MakefilePackage):
build_directory = 'libraries/liblmdb'
@property
def build_targets(self):
return ['CC={0}'.format(spack_cc)]
@property
def install_targets(self):
return ['prefix={0}'.format(self.prefix), 'install']