diff options
author | Denis Davydov <davydden@gmail.com> | 2017-05-02 08:43:37 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2017-05-02 08:43:37 +0200 |
commit | 708d8586eab7c8a1960a7a30269a0c43317746af (patch) | |
tree | 4763c2c32565b2b0ec575c180f3e8d5e746901cf /lib | |
parent | ef5da08f80bec4be4d62e1d16165a9b19ec0ebdf (diff) | |
download | spack-708d8586eab7c8a1960a7a30269a0c43317746af.tar.gz spack-708d8586eab7c8a1960a7a30269a0c43317746af.tar.bz2 spack-708d8586eab7c8a1960a7a30269a0c43317746af.tar.xz spack-708d8586eab7c8a1960a7a30269a0c43317746af.zip |
add run-time dependencies of direct build-time dependencies to PATH
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_environment.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index c3f887fd69..ac1eaaa77a 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -258,6 +258,11 @@ def set_build_environment_variables(pkg, env, dirty=False): build_link_prefixes = [dep.prefix for dep in build_link_deps] rpath_prefixes = [dep.prefix for dep in rpath_deps] + # add run-time dependencies of direct build-time dependencies: + for bd in build_deps: + for rd in bd.dependencies(deptype='run'): + build_prefixes.append(rd.prefix) + # Filter out system paths: ['/', '/usr', '/usr/local'] # These paths can be introduced into the build when an external package # is added as a dependency. The problem with these paths is that they often |