On Sat, 11 Mar 2006, Simon Stelling wrote:

It seems like libtool has some problems on multilib-enabled systems.

When libtool is given a -l argument is tries to find a matching libtool archive by searching through various paths:

for searchdir in '$newlib_search_path' '$lib_search_path' '$sys_lib_search_path' '$shlib_search_path'

I observe the same problems for Solaris SPARC. The problem is that GCC outputs paths which are not decorated for the specified architecture and libtool blindly uses them. If libtool included a test for the architecture, then it could decorate the search paths with the subdirectory where the libraries for that architecture lives. On multilib systems, GCC itself automatically decorates the search path so that the correct libraries are used, but libtool circumvents this automatic support. I think that the problem is a result of a GCC bug, but libtool needs to work with what it is given.

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


_______________________________________________
Bug-libtool mailing list
Bug-libtool@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-libtool

Reply via email to