commit 5b8a02d94f9415533b68b89bb04479f302b52f7b
parent 304b94d39c3a0251cd8f5d53ad6275660146e7f4
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 12 Jan 2024 17:44:12 +0100
fix link order magic
Diffstat:
2 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/src/donaudb/Makefile.am b/src/donaudb/Makefile.am
@@ -65,7 +65,6 @@ plugin_LTLIBRARIES = \
libtaler_plugin_donaudb_postgres.la
endif
-
libtaler_plugin_donaudb_postgres_la_SOURCES = \
plugin_donaudb_postgres.c pg_helper.h \
pg_preflight.h pg_preflight.c \
@@ -90,19 +89,21 @@ libtaler_plugin_donaudb_postgres_la_SOURCES = \
pg_insert_history_entry.h pg_insert_history_entry.c \
pg_insert_issued_receipt.h pg_insert_issued_receipt.c \
pg_insert_submitted_receipt.h pg_insert_submitted_receipt.c
-
+
+
libtaler_plugin_donaudb_postgres_la_LIBADD = \
$(LTLIBINTL)
libtaler_plugin_donaudb_postgres_la_LDFLAGS = \
- $(TALER_PLUGIN_LDFLAGS) \
+ $(TALER_PLUGIN_LDFLAGS) \
$(top_builddir)/src/util/libdonauutil.la \
- -lpq \
- -lpthread \
+ -ltalerjson \
+ -ltalerutil \
-lgnunetpq \
-lgnunetutil \
- -ljansson \
- -ltalerjson \
+ -lpq \
-ltalerpq \
+ -ljansson \
+ -lpthread \
$(XLIB)
lib_LTLIBRARIES = \
diff --git a/src/donaudb/plugin_donaudb_postgres.c b/src/donaudb/plugin_donaudb_postgres.c
@@ -75,14 +75,14 @@
* @param conn SQL connection that was used
*/
#define BREAK_DB_ERR(result,conn) do { \
- GNUNET_break (0); \
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, \
- "Database failure: %s/%s/%s/%s/%s", \
- PQresultErrorField (result, PG_DIAG_MESSAGE_PRIMARY), \
- PQresultErrorField (result, PG_DIAG_MESSAGE_DETAIL), \
- PQresultErrorMessage (result), \
- PQresStatus (PQresultStatus (result)), \
- PQerrorMessage (conn)); \
+ GNUNET_break (0); \
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, \
+ "Database failure: %s/%s/%s/%s/%s", \
+ PQresultErrorField (result, PG_DIAG_MESSAGE_PRIMARY), \
+ PQresultErrorField (result, PG_DIAG_MESSAGE_DETAIL), \
+ PQresultErrorMessage (result), \
+ PQresStatus (PQresultStatus (result)), \
+ PQerrorMessage (conn)); \
} while (0)