Link against the ws2_32 library on Windows.

This commit is contained in:
Martin Ling 2013-12-06 02:26:58 +00:00
parent 789840741c
commit 1c6736ab86
1 changed files with 6 additions and 0 deletions

View File

@ -242,6 +242,12 @@ AC_ARG_ENABLE(zeroplus-logic-cube,
# Checks for libraries. # 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. # This variable collects the pkg-config names of all detected libs.
# It is then used to construct the "Requires.private:" field in the # It is then used to construct the "Requires.private:" field in the
# libsigrok.pc file. # libsigrok.pc file.