Fix patch

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-04-04 14:17:12 +02:00
parent 7481f362dd
commit 648c288e08
1 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
--- a/src/packaging/envmods/mpich.module.in 2015-02-20 15:48:13.000000000 -0500
+++ b/src/packaging/envmods/mpich.module.in.new 2015-08-27 15:27:43.667837212 -0400
--- mpich-3.2.1/src/packaging/envmods/mpich.module.in.orig 2017-11-11 03:19:44.000000000 +0100
+++ mpich-3.2.1/src/packaging/envmods/mpich.module.in 2018-04-04 14:14:16.553160669 +0200
@@ -3,12 +3,23 @@
# MPICH module for use with 'environment-modules' package:
#
@ -23,10 +23,11 @@
+setenv MPI_SUFFIX _@MPINAME@
+setenv MPI_HOME @LIBDIR@
prepend-path PATH @bindir@
+prepend-path LD_LIBRARY_PATH @libdir@
prepend-path MANPATH :@mandir@
-prepend-path MANPATH @mandir@
-
-# Undefine prefix and exec_prefix which are too generic environment variables.
-unsetenv prefix
-unsetenv exec_prefix
+prepend-path LD_LIBRARY_PATH @libdir@
+prepend-path MANPATH :@mandir@
+prepend-path PKG_CONFIG_PATH @LIBDIR@/lib/pkgconfig