Yaroslav Halchenko <deb...@onerussian.com> writes:

> if you are a DD -- just proceed with NMU fixing this issue... I have no
> time atm for lush

I'm not a DD. But I checked out your git tree, installed the build
dependencies, and had a look.

I'm not at all familiar with building debian packages, but I tried
running dpkg-buildpackage -b -uc -us, and it seemd to work. I'm having a
debian stable x86_64 machine.

It seems configure already tries to setup static linking with bfd,
but fails, because bfd also depends on zlib.

The below patch to configure.ac seems to solve the problem (ldd src/lush
shows no dependence on libbfd, and binutils is no longer mentioned in
debian/lush.substvars). Maybe it would be better to test if -lz is
needed or not, similarly to -lintl.

I haven't tested the resulting executable; I have never used lush, and
there seemed to be no make check target.

Regards,
/Niels

diff --git a/configure.ac b/configure.ac
index 35ef84b..bfb2611 100644
--- a/configure.ac
+++ b/configure.ac
@@ -151,7 +151,7 @@ if test x$has_bfd = xyes ; then
     has_intl=
     AC_CHECK_LIB(intl, dcgettext, [has_intl=yes],[has_intl=no])
     i_LIBS=`echo $n_LIBS | sed -e 's/-liberty/& -lintl/'`
-    sn_LIBS=`echo $n_LIBS | sed -e 's/-lbfd\( -liberty\)*/-Wl,-Bstatic & 
-Wl,-Bdynamic/'`
+    sn_LIBS=`echo $n_LIBS | sed -e 's/-lbfd\( -liberty\)*/-Wl,-Bstatic & 
-Wl,-Bdynamic -lz/'`
     si_LIBS=`echo $i_LIBS | sed -e 's/-lbfd\( -liberty\)*/-Wl,-Bstatic & 
-Wl,-Bdynamic/'`
     LIBS=$sn_LIBS
     AC_MSG_CHECKING([whether bfd works with -Bstatic])

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to