From acb55442673a6aaa15c738e5314d39e547a7fdee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Fri, 24 Feb 2012 16:40:58 +0100
Subject: [PATCH] Link with -static-libgfortran under MinGW (cherry picked from
 commit 9067d7704cc8cb08efde985a2d5361560fdd1f6c)

---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1f69cb1b3..feed794ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-dnl Copyright (C) 2009-2011 Dynare Team
+dnl Copyright (C) 2009-2012 Dynare Team
 dnl
 dnl This file is part of Dynare.
 dnl
@@ -30,7 +30,7 @@ case ${host_os} in
   *mingw32*)
     # On mingw32, we don't want dynamic libgcc
     # Note that static-libstdc++ is only supported since GCC 4.5 (but generates no error on older versions)
-    LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++"
+    LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++ -static-libgfortran"
     have_windows="yes"
     ;;
   *cygwin*)
-- 
GitLab