summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-10-21 17:49:04 +0100
committerDavid Wragg <david@rabbitmq.com>2010-10-21 17:49:04 +0100
commitaaf3359493492bccbb1eced55a350078f373bb84 (patch)
treea7491919bfb77b4ff0a1935c0fdef7e2e90d2b2f
parent498230f3f22f6a75397bb916de5d9ff17cbf3c9c (diff)
downloadrabbitmq-c-github-ask-aaf3359493492bccbb1eced55a350078f373bb84.tar.gz
Microsoft link.exe doesn't understand the -l syntax
So we need to specify the winsock2 library name explicitly. It gets found by searching along the path in the LIB environment variable.
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9a0288c..a7100a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,7 +91,10 @@ AC_SUBST(PYTHON)
dnl Decide which extra win32 libs we need
EXTRA_LIBS=
-AS_IF([test "x$windows" = xyes], [EXTRA_LIBS="-lws2_32 $EXTRA_LIBS"])
+AS_IF([test "x$windows" = xyes],
+ [AS_IF([test "x$GCC" = xyes],
+ [EXTRA_LIBS="-lws2_32 $EXTRA_LIBS"],
+ [EXTRA_LIBS="ws2_32.lib $EXTRA_LIBS"])])
AC_SUBST(EXTRA_LIBS)
dnl Check for libpopt, which we need to build the tools