From: Martin Ling Date: Fri, 6 Dec 2013 02:26:58 +0000 (+0000) Subject: Link against the ws2_32 library on Windows. X-Git-Tag: libsigrok-0.3.0~470 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1c6736ab862815db0530cb01ba83e1556e2a55d8;p=libsigrok.git Link against the ws2_32 library on Windows. --- diff --git a/configure.ac b/configure.ac index 56a73a83..e14f4a25 100644 --- a/configure.ac +++ b/configure.ac @@ -242,6 +242,12 @@ AC_ARG_ENABLE(zeroplus-logic-cube, # Checks for libraries. +case "$host" in +*mingw*) + # We need to link against the Winsock2 library for SCPI over TCP. + LIBS="$LIBS -lws2_32";; +esac + # This variable collects the pkg-config names of all detected libs. # It is then used to construct the "Requires.private:" field in the # libsigrok.pc file.