Package: tkpng Version: 0.9-1 Severity: wishlist Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu oneiric ubuntu-patch
the package tkpng fails to build when using the linker flag --as-needed This is caused by the library -lm added to LDFLAGS in debian rules. This causes the library to be placed before the objects needing its symbols. This causes undefined references when built with ld --as-needed. See the log in the ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/tkpng/+bug/832926 This aptch fixes the issue by moving -lm into LIBS: === modified file 'debian/rules' --- debian/rules 2008-11-12 14:06:43 +0000 +++ debian/rules 2011-08-25 15:57:34 +0000 @@ -32,7 +32,8 @@ --with-tclinclude=/usr/include/tcl8.5/ \ --with-tkinclude=/usr/include/tcl8.5/ \ CFLAGS="$(CFLAGS)" \ - LDFLAGS="-lm -Wl,-z,defs -Wl,--no-undefined -Wl,--as-needed" + LDFLAGS="-Wl,-z,defs -Wl,--no-undefined -Wl,--as-needed" \ + LIBS="-lm" touch $@ build: build-stamp
signature.asc
Description: OpenPGP digital signature