From: Dima Kogan <dima@secretsauce.net>
Date: Sun, 30 Aug 2015 23:27:28 -0700
Subject: I don't need to link with gfortran explicitly

---
 Complex/Makefile.PL | 4 ++--
 Real/Makefile.PL    | 6 +++---
 Trans/Makefile.PL   | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

--- a/Complex/Makefile.PL
+++ b/Complex/Makefile.PL
@@ -10,14 +10,14 @@ use Config;
 
 %hash = pdlpp_stdargs(@::pack);
 # $hash{'OPTIMIZE'}  = '-g'; # If you want to debug, uncomment this.
-#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-lacml -lgfortran ';
+#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-lacml ';
 #$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-L/usr/lib/atlas -llapack -lblas -latlas ';
 #$hash{'OPTIMIZE'}  = '-O2 -mtune=k8'; # If you want to debug, uncomment this.
 
 $hash{LIBS}[0] .= ( eval {require PkgConfig; join ' ', PkgConfig->find('lapack')->get_ldflags} ||
                     eval {require ExtUtils::PkgConfig; ExtUtils::PkgConfig->libs('lapack')} ||
                     `pkg-config lapack blas --libs` ||
-                    '-L/usr/lib/atlas -llapack -lblas -latlas' ) . " -lgfortran -lquadmath";
+                    '-L/usr/lib/atlas -llapack -lblas -latlas' ) . " -lquadmath";
 
 $hash{LDLOADLIBS} .= 'oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib  ../lapack/libacml.lib "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\msvcrt.lib" ' if $^O =~ /MSWin/ && $Config{cc} eq 'cl';
 
--- a/Real/Makefile.PL
+++ b/Real/Makefile.PL
@@ -9,17 +9,17 @@ do('../Config');
 
 @pack = (["real.pd",Real,PDL::LinearAlgebra::Real]);
 %hash = pdlpp_stdargs(@::pack);
-#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-lacml -lgfortran ';
+#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-lacml ';
 #$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-L/usr/lib/atlas -llapack -lblas -latlas ';
 # $hash{'OPTIMIZE'}  = '-g'; # If you want to debug, uncomment this.
-#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-lacml -lgfortran ';
+#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-lacml ';
 #$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-L/usr/lib/atlas -llapack -lblas -latlas ';
 #$hash{'OPTIMIZE'}  = '-O2 -mtune=k8'; # If you want to debug, uncomment this.
 
 $hash{LIBS}[0] .= ( eval {require PkgConfig; join ' ', PkgConfig->find('lapack')->get_ldflags} ||
                     eval {require ExtUtils::PkgConfig; ExtUtils::PkgConfig->libs('lapack')} ||
                     `pkg-config lapack blas --libs` ||
-                    '-L/usr/lib/atlas -llapack -lblas -latlas' ) . " -lgfortran -lquadmath";
+                    '-L/usr/lib/atlas -llapack -lblas -latlas' ) . " -lquadmath";
 
 $hash{LDLOADLIBS} .= 'oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib  ../lapack/libacml.lib "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\msvcrt.lib" ' if $^O =~ /MSWin/ && $Config{cc} eq 'cl';
 
--- a/Trans/Makefile.PL
+++ b/Trans/Makefile.PL
@@ -14,7 +14,7 @@ use Config;
 $hash{LIBS}[0] .= ( eval {require PkgConfig; join ' ', PkgConfig->find('lapack')->get_ldflags} ||
                     eval {require ExtUtils::PkgConfig; ExtUtils::PkgConfig->libs('lapack')} ||
                     `pkg-config lapack blas --libs` ||
-                    '-L/usr/lib/atlas -llapack -lblas -latlas' ) . " -lgfortran -lquadmath";
+                    '-L/usr/lib/atlas -llapack -lblas -latlas' ) . " -lquadmath";
 
 $hash{LDLOADLIBS} .= 'oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib  ../lapack/libacml.lib "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\msvcrt.lib" ' if $^O =~ /MSWin/ && $Config{cc} eq 'cl';
 
