From: Bruno Haible Date: Mon, 29 Mar 2010 06:25:02 +0000 (+0200) Subject: build: update after change in gnulib's lib-ignore module X-Git-Tag: v8.5~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f5dc96354bf73afb84dacf79f2d1072d0fe74fe;p=thirdparty%2Fcoreutils.git build: update after change in gnulib's lib-ignore module * src/Makefile.am (AM_LDFLAGS): Define. Use gnulib's new $(IGNORE_UNUSED_LIBRARIES_CFLAGS). --- diff --git a/src/Makefile.am b/src/Makefile.am index ecb42a8b0c..44f12378c0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -170,6 +170,9 @@ AM_CPPFLAGS = -I$(top_srcdir)/lib noinst_LIBRARIES = libver.a nodist_libver_a_SOURCES = version.c version.h +# Tell the linker to omit references to unused shared libraries. +AM_LDFLAGS = $(IGNORE_UNUSED_LIBRARIES_CFLAGS) + # Sometimes, the expansion of $(LIBINTL) includes -lc which may # include modules defining variables like `optind', so libcoreutils.a # must precede $(LIBINTL) in order to ensure we use GNU getopt.