The new 2.0.8 release includes an overhaul of the build-system which introduces pkg-config support for libpq and libmysqlclient, and replaces the previous fall-back code where pkg-config is not available. It should fix the cross-build problems, although I have just spotted a bug in the libpq implementation (thanks to this report) for which I have sent a patch (attached) upstream.
J.
From 981988f08864ae26b2e8c3993172ce68be2b84eb Mon Sep 17 00:00:00 2001 From: Jeremy Sowden <jer...@azazel.net> Date: Sun, 11 Dec 2022 16:37:49 +0000 Subject: [PATCH ulogd2] build: fix pgsql fall-back configuration of CFLAGS When using mysql_config and pcap_config to configure `CFLAGS`, one requests the actual flags: $mysql_config --cflags $pcap_config --cflags By constrast, when using pg_config, one requests the include-directory: $pg_config --includedir Therefore, the `-I` option has to be explicitly added. Signed-off-by: Jeremy Sowden <jer...@azazel.net> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6ee29ce321d0..70eed9dc1745 100644 --- a/configure.ac +++ b/configure.ac @@ -92,7 +92,7 @@ AS_IF([test "x$enable_pgsql" != "xno"], [ AS_IF([command -v "$pg_config" >/dev/null], [ - libpq_CFLAGS="`$pg_config --includedir`" + libpq_CFLAGS="-I`$pg_config --includedir`" libpq_LIBS="`$pg_config --libdir` -lpq" AC_SUBST([libpq_CFLAGS]) -- 2.35.1
signature.asc
Description: PGP signature