File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,12 @@ if test x"$samedirectory" = x"no"; then
6060fi
6161
6262is_windows=yes;
63+ NETWORK_LIBS=""
6364case "$host" in
6465 *-mingw*)
6566 NETWORK_HEADER="winsock2.h"
6667 REGEX_LIBS="-lregex -lpthread -no-undefined"
68+ NETWORK_LIBS="-lws2_32"
6769 native_srcdir=$(cd $srcdir; pwd -W)
6870 ;;
6971 *-cygwin*)
@@ -115,7 +117,7 @@ if test x"$host" = x"$build"; then
115117 )
116118
117119 CXXFLAGS="-std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT $LIBMICROHTTPD_CFLAGS $CXXFLAGS"
118- LDFLAGS="$LIBMICROHTTPD_LIBS $REGEX_LIBS $LDFLAGS"
120+ LDFLAGS="$LIBMICROHTTPD_LIBS $NETWORK_LIBS $ REGEX_LIBS $LDFLAGS"
119121
120122 cond_cross_compile="no"
121123else
128130 )
129131
130132 CXXFLAGS="-std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT $CXXFLAGS"
131- LDFLAGS="$REGEX_LIBS $LDFLAGS"
133+ LDFLAGS="$NETWORK_LIBS $ REGEX_LIBS $LDFLAGS"
132134
133135 cond_cross_compile="yes"
134136fi
You can’t perform that action at this time.
0 commit comments