Fix: Libtool fails to find dependent libraries when cross-compiling lttng-ust
authorChristian Babeux <christian.babeux@efficios.com>
Thu, 2 Aug 2012 22:55:11 +0000 (18:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Aug 2012 22:55:11 +0000 (18:55 -0400)
commitfaebb41808b9deda5ef5dfea0c035077407e7f9f
treee416e8224b5c2dd9b4baa06c869c4c99db476773
parent0cbbe1f942b68d6a4945b91b5d1dac86fdd920bd
Fix: Libtool fails to find dependent libraries when cross-compiling lttng-ust

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

Fixes: #321
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac
This page took 0.025509 seconds and 4 git commands to generate.