[Darshan-commits] [Git][darshan/darshan][master] bug fix in fortran compiler generator

Shane Snyder xgitlab at cels.anl.gov
Thu May 19 12:42:11 CDT 2016


Shane Snyder pushed to branch master at darshan / darshan


Commits:
9b2600e6 by Shane Snyder at 2016-05-19T17:41:46+00:00
bug fix in fortran compiler generator

- - - - -


1 changed file:

- darshan-runtime/darshan-gen-fortran.pl.in


Changes:

=====================================
darshan-runtime/darshan-gen-fortran.pl.in
=====================================
--- a/darshan-runtime/darshan-gen-fortran.pl.in
+++ b/darshan-runtime/darshan-gen-fortran.pl.in
@@ -287,10 +287,10 @@ print OUTPUT<<"EOF";
         if [ \$rc_cnk_check -eq 0 ] ; then
             FMPICH=-lfmpich.cnk
         else
-            bgqlib_out=`grep -Po "libmpichf\\S\+\-\\S\+" \$tmpfile 2>/dev/null`
+            bgqlib_out=`grep -m 1 -Po "libmpichf\\S\+\-\\S\+" \$tmpfile 2>/dev/null`
             rc_bgqlib_check=\$?
             if [ \$rc_bgqlib_check -eq 0 ] ; then
-                FMPICH=`echo \$bgqlib_out | sed 's/libmpich\\(.*\\)-\\(.*\\).a/-lmpich\\1-\\2/'`
+                FMPICH=`echo \$bgqlib_out | sed 's/libmpich\\(.*\\)-\\(.*\\)\\.a.*/-lmpich\\1-\\2/'`
             else
                 FMPICH=-lfmpich
             fi



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/9b2600e67f02aadea666df70f29f9ff59294cf04
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20160519/0e2d6b53/attachment.html>


More information about the Darshan-commits mailing list