* Makefile.am (AM_LDFLAGS): New variable.
* bootstrap.conf (gnulib_modules): Add lib-ignore. Sort module list
using 'LC_ALL=C sort'.
---
Makefile.am | 3 +++
bootstrap.conf | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index d1fc912..73dc97a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,6 +22,9 @@ ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -Ilib -I$(top_srcdir)/lib -Isrc -I$(top_srcdir)/src
+# Tell the linker to omit references to unused shared libraries.
+AM_LDFLAGS = $(IGNORE_UNUSED_LIBRARIES_CFLAGS)
+
# Additional files to distribute.
EXTRA_DIST = \
README-dev \
diff --git a/bootstrap.conf b/bootstrap.conf
index 4a45c26..782c1c7 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -21,8 +21,8 @@ gnulib_modules="
announce-gen
closeout
configmake
- do-release-commit-and-tag
dirname
+ do-release-commit-and-tag
error
gendocs
getopt-gnu
@@ -30,6 +30,7 @@ gnulib_modules="
gitlog-to-changelog
gnu-web-doc-update
gnupload
+ lib-ignore
maintainer-makefile
mbsrtowcs
mbszero
--
2.53.0