[master] 58ea56b5b Define Z_PREFIX to prevent collisions with zlib
Nils Goroll
nils.goroll at uplex.de
Mon Oct 3 14:28:06 UTC 2022
commit 58ea56b5bd22d22754a9c076ddafc16264d83494
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Sep 6 21:37:47 2022 +0200
Define Z_PREFIX to prevent collisions with zlib
Trying to use zlib from a vmod would lead to conflicts because
the varnish-defined zlib symbols were found first.
diff --git a/configure.ac b/configure.ac
index e8aa9c757..4de4012ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,8 @@ AC_SUBST([PACKAGE_BRANCH])
AC_DEFINE_UNQUOTED([PACKAGE_BRANCH], ["$PACKAGE_BRANCH"],
[Define the branch of this package.])
+CFLAGS="$CFLAGS -DZ_PREFIX"
+
# save command line CFLAGS for use in VCC_CC (to pass through things like -m64)
# and make distcheck configure
OCFLAGS="$CFLAGS"
More information about the varnish-commit
mailing list