[Privoxy-commits] [privoxy] 04/04: windows: static link privoxy with an external pcre library

User Git git at git.privoxy.org
Thu Feb 18 18:00:25 UTC 2021


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

git pushed a commit to branch master
in repository privoxy.

commit 27287a56b2101e22c87b203e270662d8bd435fe4
Author: Lee <ler762 at users.sourceforge.net>
AuthorDate: Thu Feb 18 12:56:51 2021 -0500

    windows: static link privoxy with an external pcre library
    
    The pcre code included with Privoy is very old.  This at
    least gets us up to the current PCRE 8.X library code.
---
 windows/MYconfigure | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/windows/MYconfigure b/windows/MYconfigure
index 4b24fced..9ece6b6c 100755
--- a/windows/MYconfigure
+++ b/windows/MYconfigure
@@ -123,6 +123,14 @@ CFLAGS="${CFLAGS} -Wshadow"
 # using const in declarations and prototypes.
 # >>> Otherwise, it is just a nuisance. <<<  -- this, very much this
 
+# why does the mingw library _not_ include .a files for libpcre?
+# *sigh* build my own pcre so I can do static linking
+# Get the 8.x PCRE library from  https://ftp.pcre.org/pub/pcre/
+inc="/source/pcre-8.44/"
+lib="/source/pcre-8.44/.libs"
+CPPFLAGS="${CPPFLAGS} -I${inc}"
+LDFLAGS="${LDFLAGS} -L${lib}"
+
 echo "CFLAGS=${CFLAGS}"
 echo "CPPFLAGS=${CPPFLAGS}"
 echo "LDFLAGS=${LDFLAGS}"
@@ -136,7 +144,6 @@ echo "LDFLAGS=${LDFLAGS}"
              --enable-static-linking \
              --enable-strptime-sanity-checks \
              --disable-pthread  \
-             --disable-dynamic-pcre \
              --enable-extended-statistics \
              --enable-pcre-host-patterns \
              --with-docbook=yes

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list