mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Add --with-system-zlib in binutils
This patch adds --with-system-zlib and remove --with-zlib in binutils. * Makefile.am (ZLIB): New. (ZLIBINC): Likewise. (AM_CFLAGS): Add $(ZLIBINC). (readelf_LDADD): Add $(ZLIB). * configure.ac (AM_ZLIB): Removed. (zlibdir): New. AC_SUBST. (zlibinc): Likewise. Add --with-system-zlib. * readelf.c: Don't check HAVE_ZLIB_H to include <zlib.h>. (uncompress_section_contents): Don't check HAVE_ZLIB_H. * Makefile.in: Regenerated. * config.in: Likewise. * configure: Likewise.
This commit is contained in:
@@ -201,10 +201,16 @@ fi
|
||||
AC_CHECK_DECLS([environ, fprintf, getc_unlocked, getenv,
|
||||
sbrk, snprintf, stpcpy, strnlen, strstr, vsnprintf])
|
||||
|
||||
# Link in zlib if we can. This allows us to read compressed debug
|
||||
# sections. This is used only by readelf.c (objdump uses bfd for
|
||||
# reading compressed sections).
|
||||
AM_ZLIB
|
||||
# Use the system's zlib library.
|
||||
zlibdir=-L../zlib
|
||||
zlibinc="-I\$(srcdir)/../zlib"
|
||||
AC_ARG_WITH(system-zlib,
|
||||
[AS_HELP_STRING([--with-system-zlib], [use installed libz])],
|
||||
zlibdir=
|
||||
zlibinc=
|
||||
)
|
||||
AC_SUBST(zlibdir)
|
||||
AC_SUBST(zlibinc)
|
||||
|
||||
BFD_BINARY_FOPEN
|
||||
|
||||
|
||||
Reference in New Issue
Block a user