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

Julian Taylor jtaylor.debian at googlemail.com
Sun Jul 10 13:28:21 UTC 2011


Package: gmsh
Version: 2.5.1~beta1~svn9559~dfsg-1
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

the package gmsh fails to build with ld --as-needed
when building with ld --as-needed the libraries must be placed after
the objects needing their symbols.
The package sets libraries in CMAKE_CXX_FLAGS, so they get placed in the
wrong position and one gets undefined references.

See the log in the ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/gmsh/+bug/803181

Attached patch fixes this issue adding them to
target_link_libraries(gmsh,..) and removes them from debian/rules.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-as-needed-build.patch
Type: text/x-patch
Size: 1972 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20110710/a2c15b81/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/debian-science-maintainers/attachments/20110710/a2c15b81/attachment.pgp>


More information about the debian-science-maintainers mailing list