# -D_FORTIFY_SOURCE: detect some buffer overflow errors
# ***>> requires compiler optimization level 1 or above <<***
# see : https://gcc.gnu.org/legacy-ml/gcc-patches/2004-09/msg02055.html
-# The diffence between -D_FORTIFY_SOURCE=1 and -D_FORTIFY_SOURCE=2 is e.g. for
+# The difference between -D_FORTIFY_SOURCE=1 and -D_FORTIFY_SOURCE=2 is e.g. for
# struct S { struct T { char buf[5]; int x; } t; char buf[20]; } var;
# With -D_FORTIFY_SOURCE=1,
# strcpy (&var.t.buf[1], "abcdefg");
# 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"
+inc="/source/pcre-8.45/"
+lib="/source/pcre-8.45/.libs"
CPPFLAGS="${CPPFLAGS} -I${inc}"
LDFLAGS="${LDFLAGS} -L${lib}"
# mbedtls
# Get the 2.16.x mbedtls library from https://github.com/ARMmbed/mbedtls/tags
-inc="/source/mbedtls-2.16.10/include"
-lib="/source/mbedtls-2.16.10/library"
+inc="/source/mbedtls-2.16.11/include"
+lib="/source/mbedtls-2.16.11/library"
MITMOPT="--with-mbedtls"
CPPFLAGS="${CPPFLAGS} -I${inc}"
LDFLAGS="${LDFLAGS} -L${lib}"
# --target: only used to build a cross-compiling toolchain.
./configure --host=i686-w64-mingw32 --enable-mingw32 --enable-zlib \
+ --enable-extended-statistics \
+ --enable-pcre-host-patterns \
--enable-static-linking \
--enable-strptime-sanity-checks \
--disable-pthread \
- --enable-extended-statistics \
- --enable-pcre-host-patterns \
--with-brotli \
--with-mbedtls \
--with-docbook=yes