diff options
author | David Wragg <david@rabbitmq.com> | 2010-10-21 17:49:04 +0100 |
---|---|---|
committer | David Wragg <david@rabbitmq.com> | 2010-10-21 17:49:04 +0100 |
commit | aaf3359493492bccbb1eced55a350078f373bb84 (patch) | |
tree | a7491919bfb77b4ff0a1935c0fdef7e2e90d2b2f /configure.ac | |
parent | 498230f3f22f6a75397bb916de5d9ff17cbf3c9c (diff) | |
download | rabbitmq-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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
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 |