From: Lee <ler762@users.sourceforge.net>
Date: Sun, 21 Feb 2021 13:47:26 +0000 (-0500)
Subject: windows build: have to include extra libraries for a mingw build
X-Git-Tag: v_3_0_32~81
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/static/@user-manual@?a=commitdiff_plain;h=cfde2704fe41650d8bdb5eb9108d5fdc6a91aa19;p=privoxy.git

windows build: have to include extra libraries for a mingw build

or maybe it's the way I build the stand-alone library?  dunno, but
building with mingw also needs "-lbrotlicommon -lbrotlienc" added
to $LIBS
---

diff --git a/configure.in b/configure.in
index 8026f7cf..8aba8a79 100644
--- a/configure.in
+++ b/configure.in
@@ -1232,6 +1232,10 @@ AC_HELP_STRING([--without-brotli], [Disable Brotli detection]),
 if test X"$WITH_BROTLI" != Xno; then
 
   LIBS="$LIBS -lbrotlidec"
+  if test $target_type = mingw; then
+    # XXX: why does just the mingw build need this???
+    LIBS="$LIBS -lbrotlicommon -lbrotlienc"
+  fi
 
   AC_CHECK_LIB(brotlidec, BrotliDecoderDecompress)