[Debian-med-packaging] Bug#841671: pbbam: Fix for building with -Wl, --as-needed
Steve Langasek
steve.langasek at canonical.com
Fri Oct 21 23:28:46 UTC 2016
Package: pbbam
Version: 0.5.0-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu zesty ubuntu-patch
Hi Afif,
In Ubuntu, pbbam was failing to build because when linking libpbbam.so, the
library arguments were listed on the commandline before the objects being
linked. Ubuntu uses -Wl,--as-needed in its linker arguments, which causes
libraries that aren't used to be ignored; and so libraries listed before the
objects that use them are not linked against.
You can read more about this behavior here:
https://wiki.ubuntu.com/ToolChain/CompilerFlags#Flags_passed_to_the_linker
I've applied a small patch in Ubuntu to fix this, with the following
changelog explanation:
* debian/rules: fix cmake arguments so that library arguments are in the
right order for -Wl,--as-needed.
While Debian does not currently use -Wl,--as-needed by default and this is
not a build issue in Debian, applying this patch will make your package more
portable in general. Please consider applying it.
Thanks,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pbbam_0.5.0-2ubuntu1.debdiff
Type: text/x-diff
Size: 555 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20161021/5f1dd4a0/attachment.diff>
More information about the Debian-med-packaging
mailing list