Fix: Libtool fails to find dependent libraries when cross-compiling lttng-tools
authorChristian Babeux <christian.babeux@efficios.com>
Fri, 3 Aug 2012 20:31:27 +0000 (16:31 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 11 Sep 2012 15:19:37 +0000 (11:19 -0400)
commitb5e7bec3024d6af95a172afd776bbd0f782e3dcb
tree9aefcdd58446a53ff81aa15724d8c0ade9415992
parent6c12303e61c3e246ba4b1d3a37925dea53b0b93a
Fix: Libtool fails to find dependent libraries when cross-compiling lttng-tools

This problem arise when cross compiling and linking libraries with
indirect libraries dependencies (such as liblttng-ust). This "bug" is
caused by an upstream modification in the libtool package on Debian
system. The libtool "link_all_deplibs" flag is set to "no" by default
on linux targets (AFAIK, other distros set it to "unknown").

The chosen solution is to detect such cases via the configure script
and automagically patch the libtool.m4 by forcing the "link_all_deplibs"
to "unknown".

This fixup can be disabled with the appropriate configure flag:

./configure --disable-libtool-linkdep-fixup

Sample configure output on affected systems:

checking for occurence(s) of link_all_deplibs = no in
 ./config/libtool.m4... 3
configure: WARNING: the detected libtool will not link all
     dependencies, forcing link_all_deplibs = unknown

Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
configure.ac
This page took 0.02521 seconds and 4 git commands to generate.