Bug#632724: ftbs with ld --as-needed

Julian Taylor jtaylor.debian at googlemail.com
Tue Jul 5 11:11:05 UTC 2011


Package: osm2pgsql
Version: 0.70.5+r25090-2
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

the package osm2pgsql fails to build when using the linker flag --as-needed
The zlib and bzip m4 macros wrongly use LDFLAGS to link with libraries.
This leads to wrong ordering on the command line.
With ld --as-needed the libraries must be placed after the objects
needing them.
The LIBS variable must be used to archive the correct ordering.

See the log in the ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/osm2pgsql/+bug/803191

Attached patch fixes this issue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-as-needed-build.patch
Type: text/x-patch
Size: 1732 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20110705/ccdde968/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20110705/ccdde968/attachment.pgp>


More information about the Pkg-grass-devel mailing list