From 3d857b98f555ee56c6fa6ed90c024424215574ed Mon Sep 17 00:00:00 2001 From: Doug Kwan Date: Tue, 23 Jun 2009 18:10:42 +0000 Subject: 2009-06-23 Doug Kwan * Makefile.am (libgold_a_LIBADD): New. (ld_new_DEPENDENCIES, ld_new_LDADD): Remove LIBOBJS * Makefile.in: Regenerate. * config.in (HAVE_DECL_MEMMEM, HAVE_DECL_STRNDUP): New. * configure: Regenerate. * configure.ac (AC_CHECK_DECLS): Add strndup and memmem. * fileread.cc: Include sys/state.h * gold.h: Declare memmem and strndup if found missing. * gold_reloc.h: Include byteswap.h if HAVE_BYTESWAP_H is defined. --- gold/configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'gold/configure.ac') diff --git a/gold/configure.ac b/gold/configure.ac index 6415271..0a53598 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -333,6 +333,7 @@ AC_CHECK_HEADERS(tr1/unordered_set tr1/unordered_map) 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, strndup, memmem]) # Use of ::std::tr1::unordered_map::rehash causes undefined symbols # at link time with some versions of GCC. -- cgit v1.1