You are not logged in. Please login or register.
Active topics Unanswered topics
Welcome to the wolfSSL Forums!
Please post questions or comments you have about wolfSSL products here. It is helpful to be as descriptive as possible when asking your questions.
References
Stable Releases - download stable product releases.
Development Branch - latest development branch on GitHub.
wolfSSL Manual - wolfSSL (formerly CyaSSL) product manual and API reference.
Search options
Heh, you're right... I was trying to make it more complex than it is, and specify "--with-libz=no" option (which didn't work without the patch) ...
Apparently, if the "--with-libz" option is not given at all, it properly configures wolfSSL without zlib.
Thanks for clarification!
I noticed that even though the wolfSSL can be compiled without zlib and has all the appropriate ifdef's in the code, the configure script doesn't allow that - it errors out if zlib is not found. Was there a reason for making it impossible to configure wolfSSL without zlib? If not, here's the simple patch to allow running configure with "--with-libz=no" option:
diff --git a/configure.in b/configure.in
index c45313d..ef38cf2 100644
--- a/configure.in
+++ b/configure.in
@@ -358,7 +358,10 @@ trylibzdir=""
AC_ARG_WITH(libz,
[ --with-libz=PATH PATH to libz install (default /usr/) ],
[
- AC_MSG_CHECKING([for libz])
+ AC_MSG_CHECKING([for libz])
+ if test "x$withval" == "xno" ; then
+ AC_MSG_RESULT([no])
+ else
CPPFLAGS="$CPPFLAGS -DHAVE_LIBZ"
LIBS="$LIBS -lz"
@@ -388,6 +391,7 @@ AC_ARG_WITH(libz,
AC_MSG_RESULT([yes])
fi
+ fi
]
)
diff --git a/configure b/configure
index 3319018..9aeb2d2 100755
--- a/configure
+++ b/configure
@@ -13421,8 +13421,12 @@ trylibzdir=""
# Check whether --with-libz was given.
if test "${with_libz+set}" = set; then
withval=$with_libz;
- { echo "$as_me:$LINENO: checking for libz" >&5
+ { echo "$as_me:$LINENO: checking for libz" >&5
echo $ECHO_N "checking for libz... $ECHO_C" >&6; }
+ if test "x$withval" == "xno" ; then
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+ else
CPPFLAGS="$CPPFLAGS -DHAVE_LIBZ"
LIBS="$LIBS -lz"
@@ -13539,6 +13543,7 @@ echo "${ECHO_T}yes" >&6; }
echo "${ECHO_T}yes" >&6; }
fi
+ fi
fi
For what it's worth, I needed embedded SSL, and I've been compiling wolfSSL for an embedded platform without zlib for a while with no issues.
Posts found: 2
Generated in 0.016 seconds (96% PHP - 4% DB) with 4 queries