summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMario Melara <maamelara@gmail.com>2018-03-05 12:08:11 -0800
committerscheibelp <scheibel1@llnl.gov>2018-03-05 12:08:11 -0800
commitccb24b1438e82f7a89cde2fb468b02668d644a62 (patch)
tree54f6b9b03b682bfcba8c8c4c0f7e0e16fc67c237 /lib
parent89a591eb3b9b497640e3dc873599186939be802a (diff)
downloadspack-ccb24b1438e82f7a89cde2fb468b02668d644a62.tar.gz
spack-ccb24b1438e82f7a89cde2fb468b02668d644a62.tar.bz2
spack-ccb24b1438e82f7a89cde2fb468b02668d644a62.tar.xz
spack-ccb24b1438e82f7a89cde2fb468b02668d644a62.zip
Fix pkgconf on Crays (#7171)
This updates Cray.setup_platform_environment to use cray-specific pkgconfig paths so that all providers of 'pkgconfig' have access to them (previously the 'pkg-config' provider had this but the 'pkgconf' provider did not).
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/platforms/cray.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/platforms/cray.py b/lib/spack/spack/platforms/cray.py
index 095a426b22..e6e9685f74 100644
--- a/lib/spack/spack/platforms/cray.py
+++ b/lib/spack/spack/platforms/cray.py
@@ -108,6 +108,9 @@ class Cray(Platform):
if os.path.isdir(cray_wrapper_names):
env.prepend_path('PATH', cray_wrapper_names)
env.prepend_path('SPACK_ENV_PATH', cray_wrapper_names)
+ # Makes spack installed pkg-config work on Crays
+ env.append_path("PKG_CONFIG_PATH", "/usr/lib64/pkgconfig")
+ env.append_path("PKG_CONFIG_PATH", "/usr/local/lib64/pkgconfig")
@classmethod
def detect(cls):