aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViktor Szakats <vszakats@users.noreply.github.com>2017-11-05 22:56:39 +0000
committerViktor Szakats <vszakats@users.noreply.github.com>2017-11-05 23:02:05 +0000
commitcc1f4436099decb9d1a7034b2bb773a9f8379d31 (patch)
tree029fa3a0ca35dedd1ca4cd8fa6d7230b3956a87e /src
parentc675c40295045d4988eeb6291c54eb48f138822f (diff)
Makefile.m32: allow to customize brotli libs
It adds the ability to link against static brotli libs. Also fix brotli include path.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.m327
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Makefile.m32 b/src/Makefile.m32
index ffc359149..91d1b1d95 100644
--- a/src/Makefile.m32
+++ b/src/Makefile.m32
@@ -303,9 +303,14 @@ ifdef ZLIB
curl_LDADD += -L"$(ZLIB_PATH)" -lz
endif
ifdef BROTLI
- INCLUDES += -I"$(BROTLI_PATH)"
+ INCLUDES += -I"$(BROTLI_PATH)/include"
CFLAGS += -DHAVE_BROTLI
curl_LDADD += -L"$(BROTLI_PATH)/lib" -lbrotlidec
+ ifdef BROTLI_LIBS
+ curl_LDADD += $(BROTLI_LIBS)
+ else
+ curl_LDADD += -lbrotlidec
+ endif
endif
ifdef IDN2
CFLAGS += -DUSE_LIBIDN2