aboutsummaryrefslogtreecommitdiff
path: root/gdb/acinclude.m4
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-03-31 08:24:02 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-03-31 08:24:18 -0700
commit711a72d3d6f8cd3c3f408e718ff19aa4bfd2144e (patch)
tree87513c7ddcc1337bf2e2fe85f3328ef4151c6d66 /gdb/acinclude.m4
parent518a69099cf8eca95a86c4d1ff4b8d8c30cf3c6b (diff)
downloadgdb-711a72d3d6f8cd3c3f408e718ff19aa4bfd2144e.zip
gdb-711a72d3d6f8cd3c3f408e718ff19aa4bfd2144e.tar.gz
gdb-711a72d3d6f8cd3c3f408e718ff19aa4bfd2144e.tar.bz2
Add --with-system-zlib in gdb
This patch adds --with-system-zlib and removes --with-zlib in gdb. * Makefile.in (ZLIB): New. (ZLIBINC): Likewise. (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC). (CLIBS): Add $(ZLIB). * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS. Add -lz to LIBS. * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>. * top.c (print_gdb_configuration): Remove --with-zlib and --without-zlib. * config.in: Regenerated. * configure: Likewise.
Diffstat (limited to 'gdb/acinclude.m4')
-rw-r--r--gdb/acinclude.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4
index da22fc2..98ae85f 100644
--- a/gdb/acinclude.m4
+++ b/gdb/acinclude.m4
@@ -465,9 +465,9 @@ AC_DEFUN([GDB_AC_CHECK_BFD], [
# points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
# always want our bfd.
CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
- LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
+ LDFLAGS="-L../bfd -L../libiberty $zlibdir $LDFLAGS"
intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
- LIBS="-lbfd -liberty $intl $LIBS"
+ LIBS="-lbfd -liberty -lz $intl $LIBS"
AC_CACHE_CHECK([$1], [$2],
[AC_TRY_LINK(
[#include <stdlib.h>