This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH]: A patch for ld/testsuite


> Date: Fri, 25 Feb 2000 18:11:31 -0800
> From: "H . J . Lu" <hjl@valinux.com>
> Cc: binutils@sourceware.cygnus.com
> 
> On Fri, Feb 25, 2000 at 05:52:44PM -0800, Geoff Keating wrote:
> > > Date: Fri, 25 Feb 2000 17:27:07 -0800
> > > From: "H . J . Lu" <hjl@valinux.com>
> > > Cc: binutils@sourceware.cygnus.com
> > 
> > > ld/testsuite will bootstrap ld. If LIBS is set, ld/testsuite will
> > > fail to bootstrap ld. It may not work in all cases. But it works for
> > > me. If you can show me a problem, I will see what I can do.
> > 
> > How can setting LIBS affect the bootstrap test?  Before your patch,
> 
> LIBS is used to link "ld" in ld/Makefile. That means when you
> bootstrap ld, you will need LIBS if it is set.

I do not see why.  Why should I need LIBS only if it is set?

Either ld will bootstrap without extra libraries, in which case I do
not need LIBS at all, or ld will not, in which case I need the extra
libraries all the time.

> > there didn't seem to be anything in the testsuite that used it.
> > 
> > If the problem is that your ld needs some special libraries to link,
> > and so the bootstrap test doesn't work, perhaps you should look at
> > configure.host and the HOSTING_LIBS variable?
> > 
> 
> I tried. I need to determine it at the build time.

Why?

> Could you please show me a case where it will be a problem?

When performing a build in which the build and host machines are
different, and LIBS contains a library which is needed for the build
machine but is not available under that name on the host.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]