gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 56/116: Makefile.m32: allow to customize brotli lib


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 56/116: Makefile.m32: allow to customize brotli libs
Date: Tue, 05 Dec 2017 14:51:26 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit cc1f4436099decb9d1a7034b2bb773a9f8379d31
Author: Viktor Szakats <address@hidden>
AuthorDate: Sun Nov 5 22:56:39 2017 +0000

    Makefile.m32: allow to customize brotli libs
    
    It adds the ability to link against static brotli libs.
    
    Also fix brotli include path.
---
 lib/Makefile.m32 | 9 +++++++--
 src/Makefile.m32 | 7 ++++++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/lib/Makefile.m32 b/lib/Makefile.m32
index 325cdc7af..773187ad7 100644
--- a/lib/Makefile.m32
+++ b/lib/Makefile.m32
@@ -289,9 +289,14 @@ ifdef ZLIB
   DLL_LIBS += -L"$(ZLIB_PATH)" -lz
 endif
 ifdef BROTLI
-  INCLUDES += -I"$(BROTLI_PATH)"
+  INCLUDES += -I"$(BROTLI_PATH)/include"
   CFLAGS += -DHAVE_BROTLI
-  DLL_LIBS += -L"$(BROTLI_PATH)/lib" -lbrotlidec
+  DLL_LIBS += -L"$(BROTLI_PATH)/lib"
+  ifdef BROTLI_LIBS
+    DLL_LIBS += $(BROTLI_LIBS)
+  else
+    DLL_LIBS += -lbrotlidec
+  endif
 endif
 ifdef IDN2
   INCLUDES += -I"$(LIBIDN2_PATH)/include"
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

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]