Skip to content
Snippets Groups Projects
Commit 658ec970 authored by Guenter Knauf's avatar Guenter Knauf
Browse files

Fixed ares-enabled builds with static makefiles.

parent 88535d59
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -612,7 +612,11 @@
/* #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"
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment