Skip to content
Snippets Groups Projects
Commit 6b7c389a authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Another hack to get static linking of libgfortran under MinGW

(cherry picked from commit 3551512a)
parent acb55442
Branches
Tags
No related merge requests found
......@@ -155,6 +155,15 @@ AC_CHECK_PROG([CWEAVE], [cweave], [cweave])
AM_CONDITIONAL([HAVE_CWEAVE], [test "x$CWEAVE" != "x"])
AC_PROG_F77
AC_F77_LIBRARY_LDFLAGS
# Hack to get static linking of libgfortran on MinGW
# (-static-libgfortran doesn't act on gcc/g++)
case ${host_os} in
*mingw32*)
FLIBS=`echo $FLIBS | sed 's/-lgfortran/-Wl,-Bstatic -lgfortran -Wl,-Bdynamic/'`
;;
esac
if test "x$F77" != "x"; then
AX_BLAS
AX_LAPACK
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment