--- binutils-2.23.1/configure.orig	2013-03-24 23:12:45 +0400
+++ binutils-2.23.1/configure	2013-03-24 23:30:06 +0400
@@ -2865,6 +2865,7 @@
   yes|default)
     # Check for ELF target.
     is_elf=no
+    is_pe=no
     case "${target}" in
       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
@@ -2876,10 +2877,12 @@
           *)
             is_elf=yes
             ;;
-        esac
+        esac;;
+      *-*-mingw*)
+        is_pe=yes;;
     esac
 
-    if test "$is_elf" = "yes"; then
+    if test "$is_elf" = "yes" -o "$is_pe" = "yes"; then
       # Check for target supported by gold.
       case "${target}" in
         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
