blob: 77a287f1460c7f2b311a619ea7bc493f82e206e6 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001Upstream-Status: Backport
2
3https://sourceware.org/git/?p=binutils-gdb.git;h=0d8a6ab
4
5Signed-off-by: Kai Kang <kai.kang@windriver.com>
6---
7From 0d8a6ab7d39d28fb1557e2a62e9e4b336341ab34 Mon Sep 17 00:00:00 2001
8From: Aaro Koskinen <aaro.koskinen@iki.fi>
9Date: Mon, 17 Feb 2014 17:12:59 -0500
10Subject: [PATCH] sim: ppc: drop $(LIBS) from psim dependency
11
12When cross-compiling GDB for PPC, there's a prerequisite "-lz" for psim
13that results in a build failure. With such prerequisite, GNU Make will
14try to search the library from build machine's /usr/lib which is wrong.
15On 64-bit Linux build machines the compilation will fail because of this.
16
17URL: https://sourceware.org/bugzilla/show_bug.cgi?id=12202
18---
19 sim/ppc/Makefile.in | 2 +-
20 1 files changed, 1 insertions(+), 1 deletions(-)
21
22diff --git a/gdb-7.6/sim/ppc/Makefile.in b/gdb-7.6/sim/ppc/Makefile.in
23index b811f6f..740bdb0 100644
24--- a/gdb-7.6/sim/ppc/Makefile.in
25+++ b/gdb-7.6/sim/ppc/Makefile.in
26@@ -552,7 +552,7 @@ PACKAGE_SRC = @sim_pk_src@
27 PACKAGE_OBJ = @sim_pk_obj@
28
29
30-psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBS) $(LIBINTL_DEP)
31+psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBINTL_DEP)
32 $(CC) $(CFLAGS) $(SIM_CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_LIB) $(LIBINTL) $(LIBIBERTY_LIB) $(LIBS)
33
34 run: psim
35--
361.9.4
37