aboutsummaryrefslogtreecommitdiff
path: root/winbuild
diff options
context:
space:
mode:
authorandrew_ishchuk <andrew_ishchuk@office.targem.ru>2019-12-09 16:00:20 +0500
committerJay Satiro <raysatiro@yahoo.com>2019-12-09 19:11:10 -0500
commit476a8320945243c80bdf3b161232511442d8dc49 (patch)
tree112a84bcf3c228e1e02d326b938dcf0fad9d1eed /winbuild
parentc7bc689fc3d32534426612a3654cd1c804831091 (diff)
winbuild: Define CARES_STATICLIB when WITH_CARES=static
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
Diffstat (limited to 'winbuild')
-rw-r--r--winbuild/MakefileBuild.vc3
1 files changed, 3 insertions, 0 deletions
diff --git a/winbuild/MakefileBuild.vc b/winbuild/MakefileBuild.vc
index 6f34257c5..4e39be66f 100644
--- a/winbuild/MakefileBuild.vc
+++ b/winbuild/MakefileBuild.vc
@@ -222,6 +222,9 @@ CARES = static
!IFDEF USE_CARES
CARES_CFLAGS = /DUSE_ARES /I"$(CARES_INC_DIR)"
+!IF "$(CARES)"=="static"
+CARES_CFLAGS = $(CARES_CFLAGS) /DCARES_STATICLIB
+!ENDIF
!ENDIF