On Feb 7, 2002, "H . J . Lu" <[EMAIL PROTECTED]> wrote: > What is libbfd.la good for? It has
> dependency_libs=' -L/export/build/gnu/binutils-import/build-i686-linux/libiberty/pic >-liberty' In your case, nothing. If libiberty were a libtool library, you'd get appropriate pathnames for its install location in the dependency list of libbfd, such that you'd be able to link with libbfd.la and you'd get libiberty linked in automatically, as God intended. > I simply don't like the idea of dependency on static > libraries under Linux. You're free to not like it, but it's necessary for correct linking of static libraries. Try --disable-shared on binutils, install libbfd and try to link with it and you'll see what I mean. Try both libbfd.la and libbfd.a to tell the difference. > When I need libiberty.a, I will add -liberty. If you want to have to do that, don't use libtool once the library is installed, and get rid of the .la file so that you don't get tempted to use it again :-) > I don't need libtool to add things which don't belong there. You don't have to use libtool. Especially if you don't want to. > libtool should just behave like ld/ar and nothing more. If that's what you want, omit -liberty from the link command of libbfd. You'll get a perfectly broken libbfd then, just the way you want :-) -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer _______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool