From 882480fad629f9e98f7b6c83b7dc98ac7d836cc3 Mon Sep 17 00:00:00 2001 From: Ondřej Čertík Date: Tue, 24 Oct 2017 23:09:41 -0600 Subject: gdbm: pass in proper CPPFLAGS (#5893) The problem was that the configure script was not using spack's compiler wrappers. We now pass the proper compiler wrapper using the CC argument explicitly. Fixes #5892. --- var/spack/repos/builtin/packages/gdbm/package.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/gdbm/package.py b/var/spack/repos/builtin/packages/gdbm/package.py index 643750858d..3a01ce816b 100644 --- a/var/spack/repos/builtin/packages/gdbm/package.py +++ b/var/spack/repos/builtin/packages/gdbm/package.py @@ -45,4 +45,9 @@ class Gdbm(AutotoolsPackage): depends_on("readline") def configure_args(self): - return ['--enable-libgdbm-compat'] + config_args = [ + '--enable-libgdbm-compat', + 'CC=%s' % spack_cc + ] + + return config_args -- cgit v1.2.3-70-g09d2