diff options
Diffstat (limited to 'patches/gdb-7.5/0001-sim-ppc-remove-bogus-dependency.patch')
-rw-r--r-- | patches/gdb-7.5/0001-sim-ppc-remove-bogus-dependency.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/gdb-7.5/0001-sim-ppc-remove-bogus-dependency.patch b/patches/gdb-7.5/0001-sim-ppc-remove-bogus-dependency.patch new file mode 100644 index 0000000..15f5073 --- /dev/null +++ b/patches/gdb-7.5/0001-sim-ppc-remove-bogus-dependency.patch @@ -0,0 +1,30 @@ +From: Michael Olbrich <m.olbrich@pengutronix.de> +Date: Mon, 31 Oct 2011 14:09:45 +0100 +Subject: [PATCH] sim/ppc: remove bogus dependency + +Otherwise compiling may fail for PPC with: + +make[4]: *** No rule to make target `-lz', needed by `psim'. Stop. + +The problem is that while make can resolve '-lz' as a dependency, this only +works if zlib is in the default search path or VPATH. sysroot-host/lib is +not searched. As a result '-lz' may not be resolved. + +Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> +--- + sim/ppc/Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in +index 71c65cf..968620f 100644 +--- a/sim/ppc/Makefile.in ++++ b/sim/ppc/Makefile.in +@@ -551,7 +551,7 @@ PACKAGE_SRC = @sim_pk_src@ + 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 |