Fix for psim build failure due to -lz See http://sourceware.org/bugzilla/show_bug.cgi?id=12202 --- gdb-7.2.orig/sim/ppc/Makefile.in +++ gdb-7.2/sim/ppc/Makefile.in @@ -551,7 +551,7 @@ PACKAGE_OBJ = @sim_pk_obj@ -psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBS) $(LIBINTL_DEP) +psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBINTL_DEP) $(CC) $(CFLAGS) $(SIM_CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_LIB) $(LIBINTL) $(LIBIBERTY_LIB) $(LIBS) run: psim