diff options
author | Gregory Lee <lee218@llnl.gov> | 2019-06-05 10:14:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-05 10:14:06 -0700 |
commit | cfcf3996d811e60362b55005ab0f983c7e9a1c60 (patch) | |
tree | a49908b08916f1be70b91b6198042076901730ab /var | |
parent | dc8af3023e131dda8d3f46190e47f4ae44151bc7 (diff) | |
download | spack-cfcf3996d811e60362b55005ab0f983c7e9a1c60.tar.gz spack-cfcf3996d811e60362b55005ab0f983c7e9a1c60.tar.bz2 spack-cfcf3996d811e60362b55005ab0f983c7e9a1c60.tar.xz spack-cfcf3996d811e60362b55005ab0f983c7e9a1c60.zip |
set GUILE env var when building gnutls, fixes issue #11601 (#11607)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/gnutls/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gnutls/package.py b/var/spack/repos/builtin/packages/gnutls/package.py index d2d2f3445a..514182377e 100644 --- a/var/spack/repos/builtin/packages/gnutls/package.py +++ b/var/spack/repos/builtin/packages/gnutls/package.py @@ -4,6 +4,7 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * +import os class Gnutls(AutotoolsPackage): @@ -45,6 +46,12 @@ class Gnutls(AutotoolsPackage): url = "https://www.gnupg.org/ftp/gcrypt/gnutls/v{0}/gnutls-{1}.tar.xz" return url.format(version.up_to(2), version) + def setup_environment(self, build_env, run_env): + spec = self.spec + if '+guile' in spec: + build_env.set('GUILE', os.path.join(spec["guile"].prefix.bin, + 'guile')) + def configure_args(self): spec = self.spec args = [ |