diff --git a/configure b/configure
index c9458362034a37464e65fb322e6088801cae4b3b..df230fbb269bfe81a259c8e08d6d6ac801ece3f9 100755
--- a/configure
+++ b/configure
@@ -746,7 +746,7 @@ mingw32="yes"
 ;;
 CYGWIN*)
 targetos=CYGWIN
-shlibdir='${PREFIX}/bin'
+shlibdir="$bindir"
 video4linux="no"
 video4linux2="no"
 audio_oss="yes"