Index: configure.ac
===================================================================
--- configure.ac	(revision 2035)
+++ configure.ac	(working copy)
@@ -295,10 +296,11 @@
     case $host in
     *cygwin*|*mingw*)
       CFLAGS="$CFLAGS -I$with_ftd2xx"
+      FTD2XXLIB="-lftd2xx"
       AS_IF([test -d "$with_ftd2xx/i386"], [
-        FTD2XXLIB="$with_ftd2xx/i386/ftd2xx.lib"
+        LDFLAGS="$LDFLAGS -no-undefined -L$with_ftd2xx/i386"
       ],[
-        FTD2XXLIB="$with_ftd2xx/ftd2xx.lib"
+        LDFLAGS="$LDFLAGS -no-undefined -L$with_ftd2xx"
       ])
       ;;
     *)
