]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
winbuild: Define CARES_STATICLIB when WITH_CARES=static
authorandrew_ishchuk <andrew_ishchuk@office.targem.ru>
Mon, 9 Dec 2019 11:00:20 +0000 (16:00 +0500)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 10 Dec 2019 00:11:10 +0000 (19:11 -0500)
When libcurl is built with MODE=static, c-ares is forced into static
linkage too. That doesn't happen when MODE=dll so linker would break
over undefined symbols.

closes https://github.com/curl/curl/pull/4688

winbuild/MakefileBuild.vc

index 6f34257c5f04af3be5a4baa80535fd77948b49f1..4e39be66f1f2139d3458a822ea13dcee43d575b0 100644 (file)
@@ -222,6 +222,9 @@ CARES          = static
 \r
 !IFDEF USE_CARES\r
 CARES_CFLAGS   = /DUSE_ARES /I"$(CARES_INC_DIR)"\r
+!IF "$(CARES)"=="static"\r
+CARES_CFLAGS   = $(CARES_CFLAGS) /DCARES_STATICLIB\r
+!ENDIF\r
 !ENDIF\r
 \r
 \r