Build failure against binutils-gold

Andreas Metzler ametzler at
Sat Jul 17 15:28:06 CEST 2010


libgcrypt tests fail to build with binutils-gold. Some tests directly
use gpg-error functions, but are not linked against libgpg-error. I
think the simple fix of linking all tests (even the ones not using
gpg-error) against libgpg-error is acceptable. - Since the test
binaries are not installed, a little bit of extra linkage will not

--- libgcrypt11-1.4.6.orig/tests/
+++ libgcrypt11-1.4.6/tests/
@@ -36,7 +36,8 @@ TESTS += benchmark
 AM_CPPFLAGS = -I../src -I$(top_srcdir)/src
-LDADD = ../src/ $(DL_LIBS)
+# some test programs use gpg-error functions directly, link against it.
 EXTRA_PROGRAMS = testapi pkbench
 noinst_PROGRAMS = $(TESTS) fipsdrv
cu andreas
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

More information about the Gcrypt-devel mailing list