Package: mod-gearman Version: 1.0.6-1 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/73620151/buildlog_ubuntu-oneiric-i386.mod-gearman_1.0.6-1_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/mod-gearman/1.0.6-1ubuntu1 -- System Information: Debian Release: squeeze/sid APT prefers natty-updates APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty-proposed'), (500, 'natty'), (100, 'natty-backports') Architecture: i386 (i686) Kernel: Linux 2.6.38-10-generic (SMP w/2 CPU cores) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
Description: place needed library in correct variable to fix linking failure with --as-needed option. Author: Ilya Barygin <bary...@gmail.com> Bug-Ubuntu: https://launchpad.net/bugs/803184 --- mod-gearman-1.0.6.orig/Makefile.am +++ mod-gearman-1.0.6/Makefile.am @@ -53,7 +53,7 @@ gearman_top_SOURCES = $(common_SOURCES) \ tools/gearman_top.c -gearman_top_LDFLAGS = -lncurses +gearman_top_LDADD = -lncurses # tests check_PROGRAMS = 01_utils 02_full 03_exec 04_log