[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATCH: Fix libtool to support Linux/mips

From: Alexandre Oliva
Subject: Re: PATCH: Fix libtool to support Linux/mips
Date: 07 Feb 2002 07:20:14 -0200
User-agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.7

On Feb  7, 2002, "H . J . Lu" <address@hidden> wrote:

> What is 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 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 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
Red Hat GCC Developer                  address@hidden,}
CS PhD student at IC-Unicamp        address@hidden,}
Free Software Evangelist                Professional serial bug killer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]