From 8a8ffb1b556424255868972e595419293fee24c8 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 8 Mar 2019 10:22:43 +0400 Subject: add ws2_32 to library list when building on Windows --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2ad38c3..7cd9c05 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,10 @@ AC_SYS_LARGEFILE AS_CASE([$host], [*-*-freebsd*], [LDFLAGS="$LDFLAGS -L/usr/local/lib" CPPFLAGS="$CPPFLAGS -I/usr/local/include"], [*-apple-darwin*], [LDFLAGS="$LDFLAGS -headerpad_max_install_names"], + [*-w64-mingw*], [ + LIBS="$LIBS -lws2_32" + AC_CHECK_LIB([ws2_32], [closesocket], [], []) + ], [] ) -- cgit v1.2.1