--- elmerfem-5.5.0.svn.4388.dfsg.orig/fem/acx_elmer.m4
+++ elmerfem-5.5.0.svn.4388.dfsg/fem/acx_elmer.m4
@@ -772,7 +772,7 @@ for acx_cxx_ldflag in $acx_cxx_verbose_o
 	   acx_cxx_libs="$acx_cxx_libs $acx_cxx_ldflag"
 	;;
         # Ignore these flags.
-        -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=*)
+        -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -little |-LANG:=*)
 	;;
 	-[[lLR]]*)
 dnl	   echo "$acx_cxx_ldflag"
--- elmerfem-5.5.0.svn.4388.dfsg.orig/fem/configure
+++ elmerfem-5.5.0.svn.4388.dfsg/fem/configure
@@ -6335,7 +6335,7 @@ for acx_cxx_ldflag in $acx_cxx_verbose_o
 	   acx_cxx_libs="$acx_cxx_libs $acx_cxx_ldflag"
 	;;
         # Ignore these flags.
-        -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=*)
+        -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -little | -LANG:=*)
 	;;
 	-[lLR]*)
 	   acx_cxx_libs="$acx_cxx_libs $acx_cxx_ldflag"
@@ -7978,7 +7978,7 @@ fi
 
           ;;
           # Ignore these flags.
-        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
+        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little | -LANG:=* | -LIST:* | -LNO:*)
           ;;
         -lkernel32)
           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
@@ -8804,7 +8804,7 @@ fi
 
           ;;
           # Ignore these flags.
-        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
+        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little | -LANG:=* | -LIST:* | -LNO:*)
           ;;
         -lkernel32)
           test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
