The author of configure.in made quite a strange strange decision here ...

diff --git a/configure b/configure
index c1ab860..88d0c08 100755
--- a/configure
+++ b/configure
@@ -3994,7 +3994,7 @@ fi
 
 #-------------------------------------------------------------------------------
 
-LDFLAGS="$CFLAGS"
+#LDFLAGS="$CFLAGS"
 LDFLAGS_BIN="$LDFLAGS"
 
 if test "x$FC" = "xnone" ; then
