diff options
author | andrew_ishchuk <andrew_ishchuk@office.targem.ru> | 2019-12-09 16:00:20 +0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2019-12-09 19:11:10 -0500 |
commit | 476a8320945243c80bdf3b161232511442d8dc49 (patch) | |
tree | 112a84bcf3c228e1e02d326b938dcf0fad9d1eed /winbuild | |
parent | c7bc689fc3d32534426612a3654cd1c804831091 (diff) | |
download | curl-476a8320945243c80bdf3b161232511442d8dc49.tar.gz |
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.vc | 3 |
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
|