Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 | ||
index 02b31106c6e..37887eed5dd 100644 | ||
--- a/lib/Makefile.m32 | ||
+++ b/lib/Makefile.m32 | ||
@@ -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" | ||
diff --git a/src/Makefile.m32 b/src/Makefile.m32 | ||
index afb4fd547bd..74e7b93d7ae 100644 | ||
--- a/src/Makefile.m32 | ||
+++ b/src/Makefile.m32 | ||
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 | ||
index 02b31106c6e..37887eed5dd 100644 | ||
--- a/lib/Makefile.m32 | ||
+++ b/lib/Makefile.m32 | ||
@@ -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" | ||
diff --git a/src/Makefile.m32 b/src/Makefile.m32 | ||
index afb4fd547bd..74e7b93d7ae 100644 | ||
--- a/src/Makefile.m32 | ||
+++ b/src/Makefile.m32 | ||
@@ -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" |