Package: fdm Version: 1.6-4 Severity: normal Tags: patch User: debian-...@lists.debian.org 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. Here's a log of failed build in Ubuntu: https://launchpadlibrarian.net/71869810/buildlog_ubuntu-oneiric-i386.fdm_1.6-4build1_FAILEDTOBUILD.txt.gz See also http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries The attached patch was used in Ubuntu to fix the problem. https://launchpad.net/ubuntu/+source/fdm/1.6-4ubuntu1 -- System Information: Debian Release: wheezy/sid APT prefers oneiric APT policy: (500, 'oneiric') Architecture: i386 (i686) Kernel: Linux 2.6.38-10-generic (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
Description: Place libraries after object files to fix linking FTBFS. Author: Ilya Barygin <bary...@gmail.com> Index: fdm-1.6/GNUmakefile =================================================================== --- fdm-1.6.orig/GNUmakefile 2011-06-04 01:33:35.000000000 +0400 +++ fdm-1.6/GNUmakefile 2011-06-04 01:34:03.000000000 +0400 @@ -104,7 +104,7 @@ all: fdm $(PROG): $(OBJS) - $(CC) $(LDFLAGS) $(LIBS) -o $@ $+ + $(CC) $(LDFLAGS) -o $@ $+ $(LIBS) depend: $(SRCS) $(CC) $(CPPFLAGS) -MM $(SRCS) > .depend