diff --git a/configure.ac b/configure.ac index 3bab4a55d3b6f8..cb1215ff061750 100644 --- a/configure.ac +++ b/configure.ac @@ -1482,7 +1482,7 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then *-*-msys* | *-*-mingw*) AC_MSG_CHECKING([for gdi32]) my_ac_save_LIBS=$LIBS - LIBS="-lgdi32 $LIBS" + LIBS="$LIBS -lgdi32" AC_TRY_LINK([#include #include ], [GdiFlush();],