This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: Check for function declarations
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Fri, 15 May 2009 11:32:59 -0700
- Subject: gold patch committed: Check for function declarations
libiberty.h only works correctly if HAVE_DECL_BASENAME and friends are
defined correctly. I committed this patch to the gold configure script
to make sure that that happens.
Ian
2009-05-15 Ian Lance Taylor <iant@google.com>
* configure.ac: Check for declarations for cases where libiberty.h
checks HAVE_DECL_xxx.
* configure, config.in: Rebuild.
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gold/configure.ac,v
retrieving revision 1.42
diff -u -r1.42 configure.ac
--- configure.ac 24 Apr 2009 19:32:34 -0000 1.42
+++ configure.ac 15 May 2009 18:31:13 -0000
@@ -324,6 +324,7 @@
AC_CHECK_HEADERS(ext/hash_map ext/hash_set)
AC_CHECK_HEADERS(byteswap.h)
AC_CHECK_FUNCS(mallinfo posix_fallocate)
+AC_CHECK_DECLS([basename, ffs, asprintf, vasprintf, snprintf, vsnprintf, strverscmp])
# Use of ::std::tr1::unordered_map::rehash causes undefined symbols
# at link time with some versions of GCC.