forked from pool/mvapich2
76845889a8
- Add LD_LIBRARY_PATH to mpivars.sh and mpivars.csh OBS-URL: https://build.opensuse.org/request/show/510125 OBS-URL: https://build.opensuse.org/package/show/science:HPC/mvapich2?expand=0&rev=18
32 lines
526 B
Bash
32 lines
526 B
Bash
case $PATH in
|
|
*prefix/bin*)
|
|
true
|
|
;;
|
|
*)
|
|
PATH=prefix/bin:$PATH
|
|
esac
|
|
|
|
|
|
case $MANPATH in
|
|
*prefix/share/man*)
|
|
true
|
|
;;
|
|
*)
|
|
MANPATH=prefix/share/man:$MANPATH
|
|
export MANPATH
|
|
esac
|
|
|
|
|
|
case $LD_LIBRARY_PATH in
|
|
*libdir*)
|
|
true
|
|
;;
|
|
*)
|
|
if [ -z "$LD_LIBRARY_PATH" ]; then
|
|
LD_LIBRARY_PATH=libdir
|
|
else
|
|
LD_LIBRARY_PATH="libdir:$LD_LIBRARY_PATH"
|
|
fi
|
|
export LD_LIBRARY_PATH
|
|
esac
|