Build failure against binutils-gold

Andreas Metzler ametzler at downhill.at.eu.org
Sat Jul 17 15:28:06 CEST 2010


Hello,

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
hurt.

----------------------
--- libgcrypt11-1.4.6.orig/tests/Makefile.am
+++ libgcrypt11-1.4.6/tests/Makefile.am
@@ -36,7 +36,8 @@ TESTS += benchmark
 AM_CPPFLAGS = -I../src -I$(top_srcdir)/src
 AM_CFLAGS = $(GPG_ERROR_CFLAGS)
 
-LDADD = ../src/libgcrypt.la $(DL_LIBS)
+# some test programs use gpg-error functions directly, link against it.
+LDADD = ../src/libgcrypt.la $(DL_LIBS) $(GPG_ERROR_LIBS)
 
 EXTRA_PROGRAMS = testapi pkbench
 noinst_PROGRAMS = $(TESTS) fipsdrv
----------------------
cu andreas

http://bugs.debian.org/555179
-- 
`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