Append system PKG_CONFIG_PATH on Cray instead of prepend (#3766)

This commit is contained in:
Adam J. Stewart 2017-04-08 20:50:16 -05:00 committed by GitHub
parent b91bf0e067
commit bd9213a55f

View File

@ -49,8 +49,8 @@ def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
"""spack built pkg-config on cray's requires adding /usr/local/
and /usr/lib64/ to PKG_CONFIG_PATH in order to access cray '.pc'
files."""
spack_env.prepend_path('PKG_CONFIG_PATH', '/usr/lib64/pkgconfig')
spack_env.prepend_path('PKG_CONFIG_PATH', '/usr/local/lib64/pkgconfig')
spack_env.append_path('PKG_CONFIG_PATH', '/usr/lib64/pkgconfig')
spack_env.append_path('PKG_CONFIG_PATH', '/usr/local/lib64/pkgconfig')
def configure_args(self):
config_args = ['--enable-shared']