Package: sslsniff
Version: 0.7-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch
User: [email protected]
Usertags: ld-as-needed

the package sslsniff fails to build when using the linker flag --as-needed
This is caused by the libraries being placed inside LDFLAGS. Libraries
to link with should be placed in LIBS or LDADD.
See the buildlogs in ubuntu oneiric which has this flag set by default:
https://launchpad.net/ubuntu/+source/sslsniff/0.7-1

Attached patch works around this the issue by adding the libraries a
second time via the configure call in debian/rules.
A proper fix would involves changing sslsniff_LDFLAGS in Makefile.am to
sslsniff_LIBS which would need an upstream change or changing the
packaging to regenerate the autotools files.
--- debian/rules	2011-06-29 17:18:51.000000000 +0200
+++ debian/rules	2011-06-29 17:23:24.296858327 +0200
@@ -31,7 +31,7 @@
 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 	cp -f /usr/share/misc/config.guess config.guess
 endif
-	./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs -lcrypto -lboost_system"
+	./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" LIBS="-lssl -lboost_filesystem -lpthread -lboost_thread -llog4cpp -lcrypto -lboost_system"
 	### Fix incorrect LDFLAGS in generated Makefile
 	sed -i \
 	  -e 's/-lboost_filesystem/-lboost_filesystem-mt/' \

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to