Hallo,

Peter Fritsche <peter.fritzs...@gmx.de> reported a Debian bug about
Gwenhywfar failing to build when using binutils-gold: The important
difference to the stock binutils is that --no-add-needed is the default
behavior of of GNU binutils-gold. The suggested fix is to provide all
needed libraries to the linker when building executables or libraries.

The attached patch does exactly this: It adds a the needed libraries
where they are missing. I successfully tried it on Debian sid, but maybe
the hunk for configure.ac needs some modification for Windows (can't
test on Windows here). However I would like so see it eventually
committed to the SVN repository.

Regards
  Micha
Index: configure.ac
===================================================================
--- configure.ac	(revision 1605)
+++ configure.ac	(working copy)
@@ -554,6 +554,14 @@
 
 ###-------------------------------------------------------------------------
 #
+# check for library for common error values and messages in GnuPG components
+#
+AM_PATH_GPG_ERROR
+
+
+
+###-------------------------------------------------------------------------
+#
 # check for libgnutls
 #
 case "$OS_TYPE" in
Index: doc/inherit/Makefile.am
===================================================================
--- doc/inherit/Makefile.am	(revision 1605)
+++ doc/inherit/Makefile.am	(working copy)
@@ -1,4 +1,4 @@
-INCLUDES= -I$(top_builddir)/gwenhywfar3
+INCLUDES= -I$(top_builddir)/gwenhywfar3 $(GPG_ERROR_CFLAGS)
 
 EXTRA_DIST=README
 
@@ -10,5 +10,6 @@
 
 noinst_PROGRAMS = testinherit
 testinherit_SOURCES = testinherit.c
-testinherit_LDADD = libinherit.la $(top_builddir)/src/libgwenhywfar.la
+testinherit_LDADD = libinherit.la $(top_builddir)/src/libgwenhywfar.la \
+  $(GPG_ERROR_LIBS)
 TESTS = testinherit
Index: test/Makefile.am
===================================================================
--- test/Makefile.am	(revision 1605)
+++ test/Makefile.am	(working copy)
@@ -1,4 +1,5 @@
-INCLUDES= -I$(gwenhywfar_symlinkdir) $(LIBGNUTLS_CFLAGS) \
+INCLUDES= -I$(gwenhywfar_symlinkdir) \
+ $(LIBGNUTLS_CFLAGS) $(GPG_ERROR_CFLAGS) \
  -I$(top_srcdir)/src/base \
  -I$(top_srcdir)/src/crypt \
  -I$(top_srcdir)/src/io \
@@ -9,7 +10,8 @@
 
 noinst_PROGRAMS=gwentest
 gwentest_SOURCES=gwentest.c
-gwentest_LDADD=$(top_builddir)/src/libgwenhywfar.la
+gwentest_LDADD=$(top_builddir)/src/libgwenhywfar.la \
+  $(LIBGCRYPT_LIBS) $(LIBGNUTLS_LIBS) $(GPG_ERROR_LIBS)
 
 EXTRA_DIST = README.MSVC gwentest.vcproj
 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to