summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-03-29 08:25:02 +0200
committerJim Meyering <meyering@redhat.com>2010-03-29 08:28:51 +0200
commit0f5dc96354bf73afb84dacf79f2d1072d0fe74fe (patch)
treefdd29623c395c9b77fdebc5de0e1113022fd88e9 /src
parent5ef03d6c5bb8d5d822a32db465894c8e051e38ac (diff)
downloadcoreutils-0f5dc96354bf73afb84dacf79f2d1072d0fe74fe.tar.xz
build: update after change in gnulib's lib-ignore module
* src/Makefile.am (AM_LDFLAGS): Define. Use gnulib's new $(IGNORE_UNUSED_LIBRARIES_CFLAGS).
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index ecb42a8b0..44f12378c 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.