If you link against a library A that itself links against a library B,
it may or may not work to use symbols from library B in your executable;
this is known as "indirect linking". GNU ld does indirect linking by
default (but it can be disabled using --no-add-needed), but the new
experimental GNU gold linker does not do this. It's an easy fix for us,
as the tests are all already done in ./configure, we just need to tell
the Makefile.ams to use the results.

This should fix Debian bug #556677, if they ever start using this
branch.

Signed-off-by: Brad Jorsch <[email protected]>
---
 WPrefs.app/Makefile.am |    2 ++
 src/Makefile.am        |    1 +
 util/Makefile.am       |    2 +-
 3 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/WPrefs.app/Makefile.am b/WPrefs.app/Makefile.am
index 05bd3e3..393756b 100644
--- a/WPrefs.app/Makefile.am
+++ b/WPrefs.app/Makefile.am
@@ -54,5 +54,7 @@ WPrefs_LDADD = \
        $(top_builddir)/WINGs/libWINGs.la\
        $(top_builddir)/WINGs/libWUtil.la\
        $(top_builddir)/wrlib/libwraster.la \
+       @XLFLAGS@ @XLIBS@ \
        @XFTLIBS@ \
+       @FCLIBS@ \
        @INTLIBS@
diff --git a/src/Makefile.am b/src/Makefile.am
index 3fe3962..f883f77 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -120,4 +120,5 @@ wmaker_LDADD = \
        @XLFLAGS@ \
        @XFTLIBS@ \
        @XLIBS@ \
+       @LIBM@ \
        @INTLIBS@
diff --git a/util/Makefile.am b/util/Makefile.am
index 5149e4a..daba0fa 100644
--- a/util/Makefile.am
+++ b/util/Makefile.am
@@ -49,7 +49,7 @@ wmagnify_LDADD = \
        $(top_builddir)/WINGs/libWINGs.la \
        $(top_builddir)/WINGs/libWUtil.la \
        $(top_builddir)/wrlib/libwraster.la \
-       @XFTLIBS@ @INTLIBS@
+       @XLFLAGS@ @XLIBS@ @XFTLIBS@ @INTLIBS@
 
 wmsetbg_LDADD = \
        $(top_builddir)/WINGs/libWINGs.la \
-- 
1.7.1


-- 
To unsubscribe, send mail to [email protected].

Reply via email to