We cannot include these files as part of the library _SOURCES variable
or automake understands that to imply that these files need to be built
and linked into the library. But these files are being included from
within dbpool.c, and rely on headers setup there, and would cause
duplicate symbols.
---
gwlib/Makefile.am | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/gwlib/Makefile.am b/gwlib/Makefile.am
index 8a697c6e..90f92a38 100644
--- a/gwlib/Makefile.am
+++ b/gwlib/Makefile.am
@@ -2,14 +2,7 @@ lib_LTLIBRARIES = libgwlib.la
includedir = $(prefix)/include/kannel/gwlib
-libgwlib_la_SOURCES = \
- accesslog.c \
- cfg.c \
- charset.c \
- conn.c \
- counter.c \
- date.c \
- dbpool.c \
+EXTRA_libgwlib_la_SOURCES = \
dbpool_cass.c \
dbpool_mssql.c \
dbpool_mysql.c \
@@ -19,6 +12,16 @@ libgwlib_la_SOURCES = \
dbpool_sdb.c \
dbpool_sqlite.c \
dbpool_sqlite3.c \
+ # EOL
+
+libgwlib_la_SOURCES = \
+ accesslog.c \
+ cfg.c \
+ charset.c \
+ conn.c \
+ counter.c \
+ date.c \
+ dbpool.c \
dict.c \
fdset.c \
gw-dlopen.c \
--
2.43.0