build: use gnulib's lib-ignore module
authorJim Meyering <meyering@redhat.com>
Mon, 5 Apr 2010 19:46:23 +0000 (21:46 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 6 Apr 2010 06:24:42 +0000 (08:24 +0200)
* bootstrap.conf (gnulib_modules): Add lib-ignore, in case it helps.
* Makefile.am (AM_LDFLAGS): Define it.

Makefile.am
bootstrap.conf
m4/.gitignore

index 3b048b8eeeccd11fba2793120998ecfe71f5b723..c7ab7f2a95796c89a2e983a849cf268748d877a2 100644 (file)
@@ -24,6 +24,9 @@ ACLOCAL_AMFLAGS = -I m4
 AM_CPPFLAGS = -I$(top_srcdir)/lib
 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
 
+# Tell the linker to omit references to unused shared libraries.
+AM_LDFLAGS = $(IGNORE_UNUSED_LIBRARIES_CFLAGS)
+
 man_MANS = gunzip.1 gzexe.1 gzip.1 \
   zcat.1 zcmp.1 zdiff.1 zforce.1 zgrep.1 zless.1 zmore.1 znew.1
 
index f94355998b23199691df71cfca5267eabafc4273..c937da251104d30936ff655fe8a8af9ed19e445a 100644 (file)
@@ -39,6 +39,7 @@ gnu-web-doc-update
 gnumakefile
 gnupload
 ignore-value
+lib-ignore
 lstat
 maintainer-makefile
 malloc
index ff53b601a54d4df4727d7128a293b18faaee2c85..4fc85a996a490ecf310990d67c9e79520bdf0d43 100644 (file)
@@ -66,6 +66,7 @@ isnanf.m4
 isnanl.m4
 lchown.m4
 ldexpl.m4
+lib-ignore.m4
 localcharset.m4
 locale-fr.m4
 locale-ja.m4