Hi, Does anyone know why configure.acc forces -lbz2 -lgz -lrt when compiling in Kyoto Cabinet support? It isn't needed by Mailutils, as it uses no functions of those libraries, and none of them are declared as "Libs" in Kyoto/Tokyo Cabinet pkg-config definition.
The attached patch just removes this, and the build succeeds as normal in Debian. -- Jordi Mallach Pérez -- Debian developer http://www.debian.org/ [email protected] [email protected] http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/
Author: Jordi Mallach <[email protected]> Description: Do not set hardcoded DEPENDENCIES for tokyo or kyoto cabinet. Tokyo Cabinet and Kyoto Cabinet support force the inclusion of -lz -lbz2 and -lrt into DEPENDENCIES, while none of the symbols in those libraries are used. Avoid hardcoding them and let both libs decide what needs to be added to DBMLIBS. Forwarded: yes Index: mailutils-2.99.98/configure.ac =================================================================== --- mailutils-2.99.98.orig/configure.ac 2013-03-21 08:05:04.000000000 +0100 +++ mailutils-2.99.98/configure.ac 2013-07-03 09:52:24.050630432 +0200 @@ -566,7 +566,6 @@ [AC_CHECK_HEADERS(tchdb.h, AC_DEFINE(WITH_TOKYOCABINET,1, [Enable use of Tokyo Cabinet])) - DBMLIB_DEPENDENCY="$DBMLIB_DEPENDENCY -lz -lbz2 -lrt" DBMLIBS="$DBMLIBS -ltokyocabinet" status_dbm="$status_dbm,Tokyo Cabinet"]);; @@ -575,7 +574,6 @@ [AC_CHECK_HEADERS(kclangc.h, AC_DEFINE(WITH_KYOTOCABINET,1, [Enable use of Kyoto Cabinet])) - DBMLIB_DEPENDENCY="$DBMLIB_DEPENDENCY -lz -lbz2 -lrt" DBMLIBS="$DBMLIBS -lkyotocabinet" status_dbm="$status_dbm,Kyoto Cabinet"]);; esac
_______________________________________________ Bug-mailutils mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-mailutils
