From dda069f5f989c029242be985fe299ab289d91e67 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 16 Apr 2016 19:53:01 +0200 Subject: [PATCH] fix linker issue --- src/exchange-tools/taler-exchange-dbinit.c | 4 ++++ src/exchange-tools/taler-exchange-keycheck.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/exchange-tools/taler-exchange-dbinit.c b/src/exchange-tools/taler-exchange-dbinit.c index aaa468a74..f936e64d6 100644 --- a/src/exchange-tools/taler-exchange-dbinit.c +++ b/src/exchange-tools/taler-exchange-dbinit.c @@ -83,6 +83,10 @@ main (int argc, GNUNET_GETOPT_OPTION_END }; + /* force linker to link against libtalerutil; if we do + not do this, the linker may "optimize" libtalerutil + away and skip #TALER_OS_init(), which we do need */ + (void) TALER_project_data_default (); GNUNET_assert (GNUNET_OK == GNUNET_log_setup ("taler-exchange-dbinit", "INFO", diff --git a/src/exchange-tools/taler-exchange-keycheck.c b/src/exchange-tools/taler-exchange-keycheck.c index eaca7cd61..dbe156526 100644 --- a/src/exchange-tools/taler-exchange-keycheck.c +++ b/src/exchange-tools/taler-exchange-keycheck.c @@ -41,6 +41,7 @@ static const struct GNUNET_CONFIGURATION_Handle *kcfg; */ static int global_ret; + /** * Function called on each signing key. *