Commit f75b4349 authored by Shane Snyder's avatar Shane Snyder
Browse files

fortran compiler generator autodetects mpich libs

this functionality is helpful especially on mira/cetus where
the mpich libraries are named depending on the fortran version
and the type of compiler being used (gcc, xl, etc.).
parent 4f1dbfc7
...@@ -287,7 +287,13 @@ print OUTPUT<<"EOF"; ...@@ -287,7 +287,13 @@ print OUTPUT<<"EOF";
if [ \$rc_cnk_check -eq 0 ] ; then if [ \$rc_cnk_check -eq 0 ] ; then
FMPICH=-lfmpich.cnk FMPICH=-lfmpich.cnk
else else
FMPICH=-lfmpich bgqlib_out=`grep -Po "libmpichf\\S\+\-\\S\+" \$tmpfile 2>/dev/null`
if [ \$rc_bgqlib_check -eq 0 ] ; then
FMPICH=`echo \$bgqlib_out | sed 's/libmpich\\(.*\\)-\\(.*\\).a/-lmpich\\1-\\2/'`
fi fi
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment