diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2007-03-17 17:56:21 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2007-03-17 17:56:21 +0000 |
commit | 131ef7148cb22cc29e74d91cf33b41e14bb1fbbf (patch) | |
tree | e319326d62e517b0aa10ccf78f8a615b0518c2cd /Makefile.dj | |
parent | 207cde73e21d03532f3736d76eaef7608e74c419 (diff) | |
download | c-ares-131ef7148cb22cc29e74d91cf33b41e14bb1fbbf.tar.gz c-ares-131ef7148cb22cc29e74d91cf33b41e14bb1fbbf.tar.bz2 c-ares-131ef7148cb22cc29e74d91cf33b41e14bb1fbbf.zip |
Added a hack to work around the circular dependency when
CURL_DEBUG is defined.
Diffstat (limited to 'Makefile.dj')
-rw-r--r-- | Makefile.dj | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.dj b/Makefile.dj index c215abf..aa1220c 100644 --- a/Makefile.dj +++ b/Makefile.dj @@ -26,7 +26,10 @@ CFLAGS += -DWATT32 -DHAVE_AF_INET6 -DHAVE_PF_INET6 -DHAVE_FIONBIO \ LDFLAGS = -s ifeq ($(USE_DEBUG),1) - EX_LIBS = ../lib/libcurl.a + EX_LIBS = ../lib/libcurl.a + OBJ_HACK = $(OBJECTS) +else + OBJ_HACK = libcares.a endif ifeq ($(USE_SSL),1) @@ -52,10 +55,10 @@ all: $(OBJ_DIR) libcares.a ahost.exe adig.exe libcares.a: $(OBJECTS) ar rs $@ $? -ahost.exe: ahost.c libcares.a +ahost.exe: ahost.c $(OBJ_HACK) $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS) -adig.exe: adig.c libcares.a +adig.exe: adig.c $(OBJ_HACK) $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS) clean: |