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/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gold/Makefile.am') diff --git a/gold/Makefile.am b/gold/Makefile.am index 0fdf615..14173c1 100644 --- a/gold/Makefile.am +++ b/gold/Makefile.am @@ -131,6 +131,7 @@ ALL_TARGETOBJS = \ arm.$(OBJEXT) libgold_a_SOURCES = $(CCFILES) $(HFILES) $(YFILES) +libgold_a_LIBADD = $(LIBOBJS) sources_var = main.cc deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL_DEP) @@ -138,8 +139,8 @@ ldadd_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \ $(THREADSLIB) $(LIBDL) ld_new_SOURCES = $(sources_var) -ld_new_DEPENDENCIES = $(deps_var) $(LIBOBJS) -ld_new_LDADD = $(ldadd_var) $(LIBOBJS) +ld_new_DEPENDENCIES = $(deps_var) +ld_new_LDADD = $(ldadd_var) EXTRA_ld_new_SOURCES = $(TARGETSOURCES) -- cgit v1.1