This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[Bug ld/6741] PATCH COMMITTED: use libz for ld
- From: csilvers at google dot com (Craig Silverstein)
- To: binutils at sourceware dot org
- Cc: sourceware-bugzilla at sourceware dot org
- Date: Sat, 12 Jul 2008 14:40:33 -0700 (PDT)
- Subject: [Bug ld/6741] PATCH COMMITTED: use libz for ld
- References: <20080712182141.6741.hjl.tools@gmail.com> <20080712182558.20253.qmail@sourceware.org> <20080712205453.74A873F305D@localhost>
The ld directory testsuite was failing because the boostrap tests
needed to use libbfd, and now need zlib to go along with that. I
fixed the test by adding libz to the ld configure.in script, which is
similar to the solution used in the sims directory.
I committed this as an 'obvious' patch. If that was the wrong thing
to do, please let me know.
craig
--cut here--
2008-07-12 Craig Silverstein <csilvers@google.com>
* configure.in: Check for, and include, libz.a if it is present.
* configure: Regenerate.
* config.in: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/ld/configure.in,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- configure.in 21 May 2008 12:01:35 -0000 1.52
+++ configure.in 12 Jul 2008 21:36:53 -0000 1.53
@@ -148,6 +148,10 @@
AC_CHECK_DECLS([strstr, free, sbrk, getenv, environ])
+# Link in zlib if we can. This is needed only for the bootstrap tests
+# right now, since those tests use libbfd, which depends on zlib.
+AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+
# When converting linker scripts into strings for use in emulation
# files, use astring.sed if the compiler supports ANSI string
# concatenation, or ostring.sed otherwise. This is to support the