[Debian-med-packaging] Bug#678175: mrbayes: FTBFS with ld --as-needed

Ilya Barygin randomaction at ubuntu.com
Tue Jun 19 19:02:23 UTC 2012


Package: mrbayes
Version: 3.2.1+dfsg-1
Severity: normal
Tags: upstream patch
User: debian-gcc at lists.debian.org
Usertags: ld-as-needed

mrbayes fails to build when --as-needed linker option is enabled,
because of incorrect order of parameters passed to ld. Here's a log of
failed build in Ubuntu:
https://launchpad.net/ubuntu/+source/mrbayes/3.2.1+dfsg-1/+build/3447662/+files/buildlog_ubuntu-quantal-i386.mrbayes_3.2.1%2Bdfsg-1_FAILEDTOBUILD.txt.gz

See also
http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

The attached patch was used in Ubuntu to fix the problem.
https://launchpad.net/ubuntu/+source/mrbayes/3.2.1+dfsg-1ubuntu1

Note that LIBS="-Wl,--as-needed" in debian/rules doesn't actually enable
this setting. That can be done with something like "export LDFLAGS +=
-Wl,--as-needed".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: as-needed.patch
Type: text/x-patch
Size: 547 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20120619/1f877b94/attachment.bin>


More information about the Debian-med-packaging mailing list