SQLite does not depend on zlib, was: Re: [PATCH] Split sql drivers from lib-sql to plugins

Bernd Kuhls bernd.kuhls at t-online.de
Sat Nov 8 09:18:30 UTC 2014


Tomas Janousek <tjanouse at redhat.com> wrote in news:20070413132731.GA8281
@redhat.com:

> -               SQL_LIBS="$SQL_LIBS -lsqlite3 -lz"
> +               SQLITE_LIBS="$SQLITE_LIBS -lsqlite3 -lz"

Hi,

this patch fixes a build error during cross compilation to a system without 
the libz target package:

--- dovecot-2.2.15.org/configure.ac     2014-10-25 05:57:08.000000000 +0200
+++ dovecot-2.2.15/configure.ac 2014-11-08 10:06:23.015570150 +0100
@@ -2293,7 +2293,7 @@
 if test $want_sqlite != no; then
        AC_CHECK_LIB(sqlite3, sqlite3_open, [
                AC_CHECK_HEADER(sqlite3.h, [
-                       SQLITE_LIBS="$SQLITE_LIBS -lsqlite3 -lz"
+                       SQLITE_LIBS="$SQLITE_LIBS -lsqlite3"

                        AC_DEFINE(HAVE_SQLITE,, Build with SQLite3 support)
                        found_sql_drivers="$found_sql_drivers sqlite"

Regards, Bernd



More information about the dovecot mailing list