]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Add -lws2_32 on mingw crosscompile.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Dec 2011 15:48:03 +0000 (15:48 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Dec 2011 15:48:03 +0000 (15:48 +0000)
git-svn-id: file:///svn/unbound/trunk@2566 be551aaa-1e26-0410-a405-d3ace91eadb9

acx_nlnetlabs.m4
configure

index 69f8c91f693613093ea18023384167a0631a209b..116c1a04a717d523a16fdf20fb946ac3565b01ac 100644 (file)
@@ -2,9 +2,10 @@
 # Copyright 2009, Wouter Wijngaards, NLnet Labs.   
 # BSD licensed.
 #
-# Version 18
+# Version 19
 # 2011-12-05 Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
 #           Fix ACX_MALLOC for redefined malloc error.
+#           Fix GETADDRINFO_WITH_INCLUDES to add -lws2_32
 # 2011-11-10 Fix FLTO test to not drop a.out in current directory.
 # 2011-11-01 Fix FLTO test for llvm on Lion.
 # 2011-08-01 Fix nonblock test (broken at v13).
@@ -801,6 +802,7 @@ dnl see if on windows
 if test "$ac_cv_header_windows_h" = "yes"; then
        AC_DEFINE(USE_WINSOCK, 1, [Whether the windows socket API is used])
        USE_WINSOCK="1"
+       LIBS="$LIBS -lws2_32"
 fi
 ],
 dnl no quick getaddrinfo, try mingw32 and winsock2 library.
index fbaf791ba9e6182ef6bec62e76632620269cf285..172c828ff267c92d171f79e0dbdf709a99ae250e 100755 (executable)
--- a/configure
+++ b/configure
@@ -16965,6 +16965,7 @@ if test "$ac_cv_header_windows_h" = "yes"; then
 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
 
        USE_WINSOCK="1"
+       LIBS="$LIBS -lws2_32"
 fi
 
 else