mirror of
https://github.com/curl/curl.git
synced 2026-07-16 06:27:17 +03:00
Makefile.m32: add ability to override zstd libs [ci skip]
Similarly to brotli, where this was already possible.
E.g. it allows to link zstd statically to libcurl.dll.
Ref: https://github.com/curl/curl-for-win/issues/12
Ref: d9b266afd2
Closes https://github.com/curl/curl/pull/5840
This commit is contained in:
parent
327bd5d026
commit
38039da764
3 changed files with 18 additions and 3 deletions
|
|
@ -294,7 +294,12 @@ endif
|
|||
ifdef ZSTD
|
||||
INCLUDES += -I"$(ZSTD_PATH)/include"
|
||||
CFLAGS += -DHAVE_ZSTD
|
||||
curl_LDADD += -L"$(ZSTD_PATH)/lib" -lzstd
|
||||
curl_LDADD += -L"$(ZSTD_PATH)/lib"
|
||||
ifdef ZSTD_LIBS
|
||||
curl_LDADD += $(ZSTD_LIBS)
|
||||
else
|
||||
curl_LDADD += -lzstd
|
||||
endif
|
||||
endif
|
||||
ifdef BROTLI
|
||||
INCLUDES += -I"$(BROTLI_PATH)/include"
|
||||
|
|
|
|||
|
|
@ -298,7 +298,12 @@ endif
|
|||
ifdef ZSTD
|
||||
INCLUDES += -I"$(ZSTD_PATH)/include"
|
||||
CFLAGS += -DHAVE_ZSTD
|
||||
DLL_LIBS += -L"$(ZSTD_PATH)/lib" -lzstd
|
||||
DLL_LIBS += -L"$(ZSTD_PATH)/lib"
|
||||
ifdef ZSTD_LIBS
|
||||
DLL_LIBS += $(ZSTD_LIBS)
|
||||
else
|
||||
DLL_LIBS += -lzstd
|
||||
endif
|
||||
endif
|
||||
ifdef BROTLI
|
||||
INCLUDES += -I"$(BROTLI_PATH)/include"
|
||||
|
|
|
|||
|
|
@ -312,7 +312,12 @@ endif
|
|||
ifdef ZSTD
|
||||
INCLUDES += -I"$(ZSTD_PATH)/include"
|
||||
CFLAGS += -DHAVE_ZSTD
|
||||
curl_LDADD += -L"$(ZSTD_PATH)/lib" -lzstd
|
||||
curl_LDADD += -L"$(ZSTD_PATH)/lib"
|
||||
ifdef ZSTD_LIBS
|
||||
curl_LDADD += $(ZSTD_LIBS)
|
||||
else
|
||||
curl_LDADD += -lzstd
|
||||
endif
|
||||
endif
|
||||
ifdef BROTLI
|
||||
INCLUDES += -I"$(BROTLI_PATH)/include"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue