summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-05-10 00:59:01 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-05-10 00:59:01 -0700
commitcbfba84aa2939f78bbb643365414b8a488b39213 (patch)
tree5b439663429601958e9df99ecf20de4a023d8655 /lib
parent1568e64f95bcfe7fc1ff951488789462050c0640 (diff)
parentb5ebd12fe2708997b63fea1a0f1cac43c3e8e847 (diff)
downloadspack-cbfba84aa2939f78bbb643365414b8a488b39213.tar.gz
spack-cbfba84aa2939f78bbb643365414b8a488b39213.tar.bz2
spack-cbfba84aa2939f78bbb643365414b8a488b39213.tar.xz
spack-cbfba84aa2939f78bbb643365414b8a488b39213.zip
Merge pull request #849 from brettviren/bugfix/share-pkgconfig
Add to sub dirs checked for pkg-config files.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py
index eb72f2a6b4..cd9f647ddf 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -175,8 +175,8 @@ def set_build_environment_variables(pkg, env):
# Add any pkgconfig directories to PKG_CONFIG_PATH
pkg_config_dirs = []
for p in dep_prefixes:
- for libdir in ('lib', 'lib64'):
- pcdir = join_path(p, libdir, 'pkgconfig')
+ for maybe in ('lib', 'lib64', 'share'):
+ pcdir = join_path(p, maybe, 'pkgconfig')
if os.path.isdir(pcdir):
pkg_config_dirs.append(pcdir)
env.set_path('PKG_CONFIG_PATH', pkg_config_dirs)