diff --git a/configure b/configure
index bc603f6929a4d8711dc93bf3a08b781df53aca1f..cd5221bfe623cfaf1d5dbb42fae13c9ce010e14e 100755
--- a/configure
+++ b/configure
@@ -1151,6 +1151,7 @@ case $targetos in
     ;;
   mingw32*)
     targetos=mingw32
+    shlibdir="$bindir"
     if enabled_all shared static; then
         cat <<EOF
 You can only build one library type at once on MinGW.