[pkg-fgfs-crew] Bug#638233: flightgear: ftbs with ld --as-needed

Julian Taylor jtaylor.debian at googlemail.com
Wed Aug 17 22:07:51 UTC 2011


Package: flightgear
Version: 2.0.0-4
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

the package flightgear fails to build when using the linker flag --as-needed
See the log in the ubuntu bug:
https://bugs.launchpad.net/ubuntu/+bug/749249

This is caused by libsgmisc and other libraries from the simgear package
being underlinked [0]
As the libraries in these package have strong circular dependencies it
is not easy to fix the problem at the root.
Instead this patch simply ensures linking by disabling as-needed for
this one library.
It patches Makefile.in, if you change your package to regenerate the
automake files the patch must be applied against the Makefile.am

The patch can be dropped when simgear fixes its libraries.

PS: please use a patch system like 3.0 (quilt) for your package.

[0] http://wiki.mandriva.com/en/Underlinking
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-as-needed-build.patch
Type: text/x-patch
Size: 1082 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-fgfs-crew/attachments/20110818/dc003c36/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-fgfs-crew/attachments/20110818/dc003c36/attachment.pgp>


More information about the pkg-fgfs-crew mailing list