sim: ppc: drop $(LIBS) from psim dependency

When cross-compiling GDB for PPC, there's a prerequisite "-lz" for psim
that results in a build failure. With such prerequisite, GNU Make will
try to search the library from build machine's /usr/lib which is wrong.
On 64-bit Linux build machines the compilation will fail because of this.

URL: https://sourceware.org/bugzilla/show_bug.cgi?id=12202
This commit is contained in:
Aaro Koskinen 2014-02-17 17:12:59 -05:00 committed by Mike Frysinger
parent bc3c6b3642
commit 0d8a6ab7d3
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2014-02-17 Aaro Koskinen <aaro.koskinen@iki.fi>
PR gdb/12202
* Makefile.in (psim): Delete $(LIBS) from dependency.
2013-10-15 Hans-Peter Nilsson <hp@axis.com>
* Makefile.in (srcsim): New variable.
@ -35,8 +40,7 @@
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
* Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2012-03-14 Michael Haubenwallner <michael.haubenwallner@salomon.at>

View file

@ -552,7 +552,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