[Oneiric, Natty, Maverick, Lucid SRU] Link libbfd statically

Stefan Bader stefan.bader at canonical.com
Tue Aug 2 09:38:09 UTC 2011

SRU Justification:

Impact: By dynamically linking libbfd, it is not possible to have
older versions of the perf tool installed (as there can only be one
version of this lib). Also, Debian policy actually forbids depending
on a certain version of the library).

Fix: Change the makefile to statically link libbfd. This is a Ubuntu
specific change, though. Which unlikely will make it upstream.

Testcase: Check the perf version provided though the builders (it
seems that building in chroots can cause builds not linking against
libbfd at all as HAVE_CPLUS_DEMANGLE gets set). The ouput of ldd
should not show libbfd.

Actually, having said this, maybe the better solution is to modify
the build dependencies to cause the compile to have
HAVE_CPLUS_DEMANGLE set. That way we do not need to carry a
modification to the makefile which likely breaks...


More information about the kernel-team mailing list