[PATCH] common: removal of t-support.c from t_jnlib_src

NIIBE Yutaka gniibe at fsij.org
Wed Apr 22 03:31:18 CEST 2015


Hello,

This patch is related to:

  Building static GnuPG 2.1.2 fails due to multiply defined symbols.
  https://bugs.gnupg.org/gnupg/issue1862

In common/, we have t-support.c as a replacement of functions in
libgcrypt and libgpg-error.  It is used for t-stringhelp, t-timestuff,
and t-w32-reg.

Since those test programs are linked to libgcrypt and libgpg-error, we
don't need to link t-support.o.

diff --git a/common/Makefile.am b/common/Makefile.am
index 51923e8..4493ae7 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -171,7 +171,7 @@ endif
 #
 # Module tests
 #
-t_jnlib_src = t-support.c t-support.h
+t_jnlib_src = t-support.h
 jnlib_tests = t-stringhelp t-timestuff
 if HAVE_W32_SYSTEM
 jnlib_tests += t-w32-reg
--



More information about the Gnupg-devel mailing list