Package: sagan Version: 0.1.9~svn129-1 Severity: wishlist Tags: patch User: debian-...@lists.ubuntu.com Usertags: ld-as-needed
*** /tmp/tmpZIoSDH The package sagan fails to build when using the --as-needed flag to ld as the libraries ee and estr came before the objects that used them. This causes them to not be registered as needed and dropped. The attached patch resolves the issue by correctly setting "-lestr -lee" as LIBS rather than LDFLAGS, reordering the command line. -- System Information: Debian Release: squeeze/sid APT prefers natty-updates APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty') Architecture: i386 (i686) Kernel: Linux 2.6.38-8-generic (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/rules' --- debian/rules 2011-03-17 15:18:58 +0000 +++ debian/rules 2011-06-29 15:12:30 +0000 @@ -14,7 +14,7 @@ override_dh_auto_configure: dh_testdir - dh_auto_configure -- --with-postgresql-includes=/usr/include/postgresql --disable-libdnet LDFLAGS="-lestr -lee" + dh_auto_configure -- --with-postgresql-includes=/usr/include/postgresql --disable-libdnet LIBS="-lestr -lee" override_dh_auto_install: dh_auto_install