]> sigrok.org Git - libsigrok.git/commitdiff
Link against the ws2_32 library on Windows.
authorMartin Ling <redacted>
Fri, 6 Dec 2013 02:26:58 +0000 (02:26 +0000)
committerMartin Ling <redacted>
Fri, 6 Dec 2013 02:26:58 +0000 (02:26 +0000)
configure.ac

index 56a73a836be73557d017b8b2bdf61989b2eb3031..e14f4a25ee661c60f57923a17b858a2931acdca0 100644 (file)
@@ -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.