Hi all (esp Dan),
I've been working on the packaging for 2.0.0 and noticed the libdbmail.so.0.0.0 differs between the mysql and postgresql builds. objdump reveals dependencies on either the mysql or postgresql libs.
Currently all binaries are linked with the libdbmail.so. This libdbmail.so in turn is linked with either dbmail/libmysqldbmail.so or dbmail/libpgsqldbmail.so plus the client libs for one or the other sql server.
Linking libdbmail with the client libs isn't required as far as I can tell, so that one is easily removed, and we can make sure dbmail/libXXsqldbmail.so (which *are* of course linked with the client libs) are renamed into dbmail/libsqldbmail.so.
Does that cover all our bases ? I've build and tested the binaries this, without any errors. I've attached a patch that will do this. Please run autoreconf before trying this. -- ________________________________________________________________ Paul Stevens [EMAIL PROTECTED] NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands_______________________________________www.nfg.nl
Index: Makefile.am =================================================================== RCS file: /cvsroot-dbmail/dbmail/Makefile.am,v retrieving revision 1.19 diff -r1.19 Makefile.am 66c66 < libdbmail_la_LIBADD = @SQLLTLIB@ @SORTLTLIB@ @AUTHLTLIB@ @SQLLIB@ @LDAPLIB@ @SIEVELIB@ --- > libdbmail_la_LIBADD = @SQLLTLIB@ @SORTLTLIB@ @AUTHLTLIB@ @LDAPLIB@ @SIEVELIB@ Index: acinclude.m4 =================================================================== RCS file: /cvsroot-dbmail/dbmail/acinclude.m4,v retrieving revision 1.5.4.1 diff -r1.5.4.1 acinclude.m4 206,207c206,207 < SQLALIB="mysql/.libs/libmysqldbmail.a" < SQLLTLIB="mysql/libmysqldbmail.la" --- > SQLALIB="mysql/.libs/libsqldbmail.a" > SQLLTLIB="mysql/libsqldbmail.la" 225,226c225,226 < SQLALIB="pgsql/.libs/libpgsqldbmail.a" < SQLLTLIB="pgsql/libpgsqldbmail.la" --- > SQLALIB="pgsql/.libs/libsqldbmail.a" > SQLLTLIB="pgsql/libsqldbmail.la" Index: mysql/Makefile.am =================================================================== RCS file: /cvsroot-dbmail/dbmail/mysql/Makefile.am,v retrieving revision 1.5 diff -r1.5 Makefile.am 22c22 < pkglib_LTLIBRARIES = libmysqldbmail.la --- > pkglib_LTLIBRARIES = libsqldbmail.la 24c24 < libmysqldbmail_la_SOURCES = dbmysql.c --- > libsqldbmail_la_SOURCES = dbmysql.c Index: pgsql/Makefile.am =================================================================== RCS file: /cvsroot-dbmail/dbmail/pgsql/Makefile.am,v retrieving revision 1.6 diff -r1.6 Makefile.am 22c22 < pkglib_LTLIBRARIES = libpgsqldbmail.la --- > pkglib_LTLIBRARIES = libsqldbmail.la 24c24 < libpgsqldbmail_la_SOURCES = dbpgsql.c --- > libsqldbmail_la_SOURCES = dbpgsql.c