Patchwork [build] Link gengtype with $(LDFLAGS)

login
register
mail settings
Submitter Rainer Orth
Date Aug. 8, 2011, 12:21 p.m.
Message ID <ydd39hct7oe.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/108900/
State New
Headers show

Comments

Rainer Orth - Aug. 8, 2011, 12:21 p.m.
IRIX 6.5 bootstrap was broken this weekend: gengtype failed to link in
stage2 since it was linked with -lstdc++ (for graphite, from HOST_LIBS),
but LDFLAGS (which provides the necessary -L option) is missing.

With this patch, the bootstrap continues.

I suppose this is obvious?

	Rainer


2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
Paolo Bonzini - Aug. 8, 2011, 12:32 p.m.
On 08/08/2011 02:21 PM, Rainer Orth wrote:
> IRIX 6.5 bootstrap was broken this weekend: gengtype failed to link in
> stage2 since it was linked with -lstdc++ (for graphite, from HOST_LIBS),
> but LDFLAGS (which provides the necessary -L option) is missing.
>
> With this patch, the bootstrap continues.
>
> I suppose this is obvious?

Yes.

Paolo

Patch

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3986,7 +3986,8 @@  build/gengtype$(build_exeext) : build/ge
 
 gengtype$(exeext) : gengtype.o gengtype-lex.o gengtype-parse.o \
               gengtype-state.o version.o errors.o $(LIBDEPS)
-	+$(LINKER) $(ALL_LINKERFLAGS) -o $@ $(filter-out ($LIBDEPS), $^) $(LIBS)
+	+$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
+	    $(filter-out ($LIBDEPS), $^) $(LIBS)
 
 # Rule for the generator programs:
 $(genprog:%=build/gen%$(build_exeext)): build/gen%$(build_exeext): build/gen%.o $(BUILD_LIBDEPS)