summaryrefslogtreecommitdiffstats
path: root/patches/gdb-7.5/0001-sim-ppc-remove-bogus-dependency.patch
blob: 15f5073ff2c243ef762ba383dc24d9b127b06f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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