summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Underwood <robertu94@users.noreply.github.com>2020-11-17 12:10:28 -0500
committerGitHub <noreply@github.com>2020-11-17 11:10:28 -0600
commitf3596644936f1439ef4050556f517126d7e540d9 (patch)
tree59316f15f0c6c5aea6b167fa8368ee96882914aa /lib
parent7562e53a5acc799130c875837305801368bf7a2a (diff)
downloadspack-f3596644936f1439ef4050556f517126d7e540d9.tar.gz
spack-f3596644936f1439ef4050556f517126d7e540d9.tar.bz2
spack-f3596644936f1439ef4050556f517126d7e540d9.tar.xz
spack-f3596644936f1439ef4050556f517126d7e540d9.zip
include share/pkgconfig in user environments (#19909)
According to the documentation for spack and pkg-config, $view/share/pkgconfig should also be a valid place to look for package config files. This commit ensures that when spack activate env $dir is called, the environment has this directory in PKG_CONFIG_PATH.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/user_environment.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/user_environment.py b/lib/spack/spack/user_environment.py
index d8bd9feff6..c891ddd26b 100644
--- a/lib/spack/spack/user_environment.py
+++ b/lib/spack/spack/user_environment.py
@@ -35,6 +35,7 @@ def prefix_inspections(platform):
'include': ['CPATH'],
'lib/pkgconfig': ['PKG_CONFIG_PATH'],
'lib64/pkgconfig': ['PKG_CONFIG_PATH'],
+ 'share/pkgconfig': ['PKG_CONFIG_PATH'],
'': ['CMAKE_PREFIX_PATH']
}