Index: libtool.m4 =================================================================== --- libtool.m4 (revision 122836) +++ libtool.m4 (working copy) @@ -663,7 +663,14 @@ ;; cygwin* | mingw* |pw32*) - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + case $host in + x86_64-*-*) + lt_cv_deplibs_check_method='file_magic file format pe*-i386(.*architecture: i386)?' + ;; + *) + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + ;; + esac lt_cv_file_magic_cmd='$OBJDUMP -f' ;;