mirror of
https://github.com/curl/curl.git
synced 2026-05-10 16:06:20 +03:00
Makefile.mk: always set CURL_STATICLIB for lib (Windows)
Also fix to export all symbols in Windows debug builds, making `-debug-dyn` builds work with `-DCURL_STATICLIB` set. Ref: https://github.com/curl/curl/pull/11914 (same for CMake) Closes #11924
This commit is contained in:
parent
aa9a6a1770
commit
6a85659e7d
1 changed files with 5 additions and 0 deletions
|
|
@ -375,6 +375,9 @@ distclean vclean: clean
|
|||
ifdef LOCAL
|
||||
|
||||
CPPFLAGS += -DBUILDING_LIBCURL
|
||||
ifdef WIN32
|
||||
CPPFLAGS += -DCURL_STATICLIB
|
||||
endif
|
||||
|
||||
### Sources and targets
|
||||
|
||||
|
|
@ -388,7 +391,9 @@ ifdef WIN32
|
|||
CURL_DLL_SUFFIX ?=
|
||||
libcurl_dll_LIBRARY := libcurl$(CURL_DLL_SUFFIX).dll
|
||||
libcurl_dll_a_LIBRARY := libcurl.dll.a
|
||||
ifeq ($(findstring -trackmem,$(CFG)),)
|
||||
CURL_LDFLAGS_LIB += $(PROOT)/libcurl.def
|
||||
endif
|
||||
ifdef MAP
|
||||
libcurl_map_LIBRARY := libcurl$(CURL_DLL_SUFFIX).map
|
||||
CURL_LDFLAGS_LIB += -Wl,-Map,$(libcurl_map_LIBRARY)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue