mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 14:05:03 -05: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
@ -294,7 +294,12 @@ endif
|
|||||||
ifdef ZSTD
|
ifdef ZSTD
|
||||||
INCLUDES += -I"$(ZSTD_PATH)/include"
|
INCLUDES += -I"$(ZSTD_PATH)/include"
|
||||||
CFLAGS += -DHAVE_ZSTD
|
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
|
endif
|
||||||
ifdef BROTLI
|
ifdef BROTLI
|
||||||
INCLUDES += -I"$(BROTLI_PATH)/include"
|
INCLUDES += -I"$(BROTLI_PATH)/include"
|
||||||
|
@ -298,7 +298,12 @@ endif
|
|||||||
ifdef ZSTD
|
ifdef ZSTD
|
||||||
INCLUDES += -I"$(ZSTD_PATH)/include"
|
INCLUDES += -I"$(ZSTD_PATH)/include"
|
||||||
CFLAGS += -DHAVE_ZSTD
|
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
|
endif
|
||||||
ifdef BROTLI
|
ifdef BROTLI
|
||||||
INCLUDES += -I"$(BROTLI_PATH)/include"
|
INCLUDES += -I"$(BROTLI_PATH)/include"
|
||||||
|
@ -312,7 +312,12 @@ endif
|
|||||||
ifdef ZSTD
|
ifdef ZSTD
|
||||||
INCLUDES += -I"$(ZSTD_PATH)/include"
|
INCLUDES += -I"$(ZSTD_PATH)/include"
|
||||||
CFLAGS += -DHAVE_ZSTD
|
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
|
endif
|
||||||
ifdef BROTLI
|
ifdef BROTLI
|
||||||
INCLUDES += -I"$(BROTLI_PATH)/include"
|
INCLUDES += -I"$(BROTLI_PATH)/include"
|
||||||
|
Loading…
Reference in New Issue
Block a user