diff mbox

[build] Link gengtype with $(LDFLAGS)

Message ID ydd39hct7oe.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth Aug. 8, 2011, 12:21 p.m. UTC
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).

Comments

Paolo Bonzini Aug. 8, 2011, 12:32 p.m. UTC | #1
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
diff mbox

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)