Skip to content

Commit

Permalink
set GUILE env var when building gnutls, fixes issue spack#11601 (spac…
Browse files Browse the repository at this point in the history
  • Loading branch information
lee218llnl authored Jun 5, 2019
1 parent dc8af30 commit cfcf399
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions var/spack/repos/builtin/packages/gnutls/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *
import os


class Gnutls(AutotoolsPackage):
Expand Down Expand Up @@ -45,6 +46,12 @@ def url_for_version(self, version):
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 = [
Expand Down

0 comments on commit cfcf399

Please sign in to comment.