Package: sslscan
Version: 1.8.2-1
Severity: normal
Tags: upstream patch
User: [email protected]
Usertags: ld-as-needed

The package fails to build when --as-needed linker option is enabled,
because of incorrect order of parameters passed to ld. We had to patch it
in Ubuntu because this option is enabled by default.

See also
http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

One of the patches in Debian package was updated, modified version is attached.
https://launchpad.net/ubuntu/+source/sslscan/1.8.2-1ubuntu1

-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric
  APT policy: (500, 'oneiric')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-11-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
# 01-Makefile-binutils-gold.diff
# Author: Marvin Stark <[email protected]>
# DP: Let sslscan build with binutils-gold
--- sslscan-1.8.2.orig/Makefile
+++ sslscan-1.8.2/Makefile
@@ -3,11 +3,11 @@
 MANPATH = /usr/share/man/
 
 all:
-	gcc -g -Wall -lssl -o sslscan $(SRCS) $(LDFLAGS) $(CFLAGS)
+	gcc -g -Wall -o sslscan $(SRCS) $(LDFLAGS) $(CFLAGS) -lssl -lcrypto
 
 install:
 	cp sslscan $(BINPATH)
-	cp sslscan.1 $(MANPATH)man1
+	cp sslscan.1 $(MANPATH)/man1/
 
 uninstall:
 	rm -f $(BINPATH)sslscan

Reply via email to