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

Julian Taylor jtaylor.debian at googlemail.com
Thu Jun 30 17:17:53 UTC 2011


Package: hydrogen
Version: 0.9.5-2
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

the package hydrogen fails to build when using the linker flag --as-needed
This is caused by the libraries being placed before the objects which
need the symbols on the command line. So the library symbols are not
registered as needed.
Combined with the --no-copy-dt-needed flag, which is default in debian
now too, this causes missing linkage with libporttime
See the log ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/hydrogen/+bug/803182

Attached patch fixes this issue by using the correct scons variables for
libraries.
The static libhydrogen should not go in LIBS as it is an object file but
I am unfamiliar with scons so I don't know where it goes. So I prepended
it to LIBS to ensure the shared libraries are placed behind it on the
commandline.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-as-needed-build.patch
Type: text/x-patch
Size: 3582 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20110630/8bfd3791/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-multimedia-maintainers/attachments/20110630/8bfd3791/attachment.pgp>


More information about the pkg-multimedia-maintainers mailing list