[PATCH]: A patch for ld/testsuite

H . J . Lu hjl@valinux.com
Fri Feb 25 17:27:00 GMT 2000

On Fri, Feb 25, 2000 at 05:20:31PM -0800, Geoff Keating wrote:
> > Date: Fri, 25 Feb 2000 16:56:38 -0800
> > From: "H . J . Lu" <hjl@valinux.com>
> > 
> > I'd like to check in this patch. Any objections? The problem is LIBS
> > set in ld/Makefile is not passed into ld/testsuite. As the result,
> > some tests may fail.
> I'm not sure how variables set in ld/Makefile, which is for building
> ld on the build machine, applies to running tests for the target...

If you take a look how LIBS is used in ld/Makefile, you will find:

ld-new$(EXEEXT): $(ld_new_OBJECTS) $(ld_new_DEPENDENCIES)
        @rm -f ld-new$(EXEEXT)
        $(LINK) $(ld_new_LDFLAGS) $(ld_new_OBJECTS) $(ld_new_LDADD) $(LIBS) 

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.

H.J. Lu (hjl@gnu.org)

More information about the Binutils mailing list