Fixed ares-enabled builds with static makefiles.
authorGuenter Knauf <lists@gknw.net>
Tue, 9 Apr 2013 15:44:51 +0000 (17:44 +0200)
committerGuenter Knauf <lists@gknw.net>
Tue, 9 Apr 2013 15:44:51 +0000 (17:44 +0200)
lib/Makefile.m32
lib/config-win32.h
src/Makefile.m32

index 1de5af8..bb01bba 100644 (file)
@@ -153,7 +153,7 @@ CFLAGS += -DBUILDING_LIBCURL
 
 ifdef ARES
   INCLUDES += -I"$(LIBCARES_PATH)"
-  CFLAGS += -DUSE_ARES
+  CFLAGS += -DUSE_ARES -DCARES_STATICLIB
   DLL_LIBS += -L"$(LIBCARES_PATH)" -lcares
   libcurl_dll_DEPENDENCIES = $(LIBCARES_PATH)/libcares.a
 endif
index cfbca9c..c1e6954 100644 (file)
 /* #define USE_ARES 1 */
 
 /* Define to enable threaded asynchronous DNS lookups. */
-#define USE_THREADS_WIN32 1
+#if !defined(USE_ARES) && !defined(USE_THREADS_WIN32)
+#  define USE_THREADS_WIN32 1
+#elif defined(USE_THREADS_WIN32) && USE_THREADS_WIN32 == 0
+#  undef USE_THREADS_WIN32
+#endif
 
 #if defined(USE_ARES) && defined(USE_THREADS_WIN32)
 #  error "Only one DNS lookup specialty may be defined at most"
index 891a000..b8a60af 100644 (file)
@@ -177,7 +177,7 @@ ifdef ARES
   ifndef DYN
     curl_DEPENDENCIES += $(LIBCARES_PATH)/libcares.a
   endif
-  CFLAGS += -DUSE_ARES
+  CFLAGS += -DUSE_ARES -DCARES_STATICLIB
   curl_LDADD += -L"$(LIBCARES_PATH)" -lcares
 endif
 ifdef RTMP