Message ID | ydd39hct7oe.fsf@manam.CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
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 --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)