0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-19 19:52:15 +02:00
openvpn3/scripts/build-extras/zlib.sh
James Yonan 7b14dae436 In zlib.hpp, don't compile zlib code unless
HAVE_ZLIB is defined.

In scripts/build-extras/zlib.sh, define
HAVE_ZLIB when running build script with
ZLIB=1.
2015-10-16 13:49:11 -06:00

9 lines
186 B
Bash

if [ "$1" = "args" ]; then
echo " ZLIB=1 -- link with zlib"
elif [ "$1" = "deps" ]; then
if [ "$ZLIB" = "1" ]; then
LIBS="$LIBS -lz"
CPPFLAGS="$CPPFLAGS -DHAVE_ZLIB"
fi
fi