but this only works is all the libraries have .la files, right? what happens if not all those libraries were built with libtool? how would libtool find the dependent libraries if there is no .la?
That is a function of pkg-config. :-)
From the outside, nothing changes. Except that libtool trusts you to have linked your deplibs properly.
generally, it's a good idea to list all dependent libraries, because it must be done on some systems. now if libtool starts saying "don't do this", then people will just not do it, whether they understand the issues involved or not.
At least for libraries with .la files, libtool would silently drop the extra dependencies (relying on the linker to add them) and would not say "don't do this". I agree that typical developers react to error messages and warnings, and may not spend enough time to understand all the issues.
Bob ====================================== Bob Friesenhahn [EMAIL PROTECTED] http://www.simplesystems.org/users/bfriesen
_______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/libtool