From: H.J. Lu Date: Wed, 1 Apr 2015 17:27:34 +0000 (-0700) Subject: Fix sim build X-Git-Tag: users/hjl/linux/release/2.25.51.0.2~2^2~16^2~132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79730a3b2683dba745663fa3b907f564bee8a0ef;p=thirdparty%2Fbinutils-gdb.git Fix sim build * common/Make-common.in (CSEARCH): Remove $(ZLIBINC). (BFD_LIB): Remove $(ZLIB). (CONFIG_LIBS): Add $(ZLIB). * ppc/Makefile.in (ZLIBINC): Removed. (INCLUDES): Remove $(ZLIBINC). (BFD_LIB): Remove $(ZLIB). --- diff --git a/sim/ChangeLog b/sim/ChangeLog index c75527349ff..abbeccf2267 100644 --- a/sim/ChangeLog +++ b/sim/ChangeLog @@ -1,3 +1,12 @@ +2015-04-01 H.J. Lu + + * common/Make-common.in (CSEARCH): Remove $(ZLIBINC). + (BFD_LIB): Remove $(ZLIB). + (CONFIG_LIBS): Add $(ZLIB). + * ppc/Makefile.in (ZLIBINC): Removed. + (INCLUDES): Remove $(ZLIBINC). + (BFD_LIB): Remove $(ZLIB). + 2015-04-01 H.J. Lu * arm/configure: Regenerated. diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index 345d1db8f42..0b1f85a937f 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -248,21 +248,20 @@ CSEARCH = -I. -I$(srcdir) -I../common -I$(srccom) \ -I../../include -I$(srcroot)/include \ -I../../bfd -I$(srcroot)/bfd \ -I../../opcodes -I$(srcroot)/opcodes \ - @INCINTL@ $(ZLIBINC) + @INCINTL@ ALL_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) $(CFLAGS) BUILD_CFLAGS = -g -O $(CSEARCH) COMMON_DEP_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) ZLIB = @zlibdir@ -lz -ZLIBINC = @zlibinc@ LIBIBERTY_LIB = ../../libiberty/libiberty.a -BFD_LIB = ../../bfd/libbfd.a $(ZLIB) +BFD_LIB = ../../bfd/libbfd.a @PLUGINS_TRUE@LIBDL = @lt_cv_dlopen_libs@ OPCODES_LIB = ../../opcodes/libopcodes.a LIBINTL = @LIBINTL@ LIBINTL_DEP = @LIBINTL_DEP@ -CONFIG_LIBS = @LIBS@ +CONFIG_LIBS = @LIBS@ $(ZLIB) LIBDEPS = $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL_DEP) $(LIBIBERTY_LIB) \ $(SIM_EXTRA_LIBDEPS) EXTRA_LIBS = $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL) $(LIBIBERTY_LIB) \ diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index d3a9f16ffe1..964a7b3bf70 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -152,19 +152,13 @@ MAKEOVERRIDES= LIB_INCLUDES = -I$(srcdir)/../../include BFD_INCLUDES = -I../../bfd -I$(srcdir)/../../bfd GDB_INCLUDES = -I../../gdb -I$(srcdir)/../../gdb -I$(srcdir)/../../gdb/config -ZLIBINC = @zlibinc@ -INCLUDES = -I. -I$(srcdir) $(LIB_INCLUDES) $(BFD_INCLUDES) $(GDB_INCLUDES) $(ZLIBINC) +INCLUDES = -I. -I$(srcdir) $(LIB_INCLUDES) $(BFD_INCLUDES) $(GDB_INCLUDES) LIBIBERTY_LIB = ../../libiberty/libiberty.a -BFD_LIB = ../../bfd/libbfd.a $(ZLIB) +BFD_LIB = ../../bfd/libbfd.a ZLIB = @zlibdir@ -lz -# This is where we get zlib from. zlibdir is -L../zlib and zlibinc is -# -I../zlib, unless we were configured with --with-system-zlib, in which -# case both are empty. -ZLIB = @zlibdir@ -lz - LIBINTL = @LIBINTL@ LIBINTL_DEP = @LIBINTL_DEP@ INTL_CFLAGS = @INCINTL@