commit 2766857f012833965ad4b62dee3f29f3a7f3425c
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed May 11 17:09:34 2016 +0200
Do not use 'u' flag for ar
The Reproducible Builds effort (https://wiki.debian.org/ReproducibleBuilds)
in Debian (at least) means that 'ar' is built in deterministic mode as default:
all timestamps are set to 0.
This is not compatible with the use of the 'u' flag, and therefore ARFLAGS
has to be changed from 'cru' to 'cr'.
This gets rid of the harmless but annoying warning
ar: `u' modifier ignored since `D' is the default (see `U')
(cherry picked from commit 987fc1d15d017c192a566fc922e3967d9d280668)
---
configure.ac | 3 +++
status.22x | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 28c7196..fdecdab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,6 +74,9 @@ AM_PATH_PYTHON
# Tools for creating libraries (note that we do not use libtool)
m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) dnl AM_PROG_AR requires automake 1.12
AC_PROG_RANLIB
+dnl Recent debian/ubuntu (at least) have built 'ar' so that deterministic mode
is the default.
+dnl This means that it does not make sense to use the 'u' flag (default
ARFLAGS is 'cru').
+AC_SUBST([ARFLAGS], [cr])
### Check for a C++ compiler
dnl We have to do weird tricks so that autoconf does not touch CXXFLAGS even
diff --git a/status.22x b/status.22x
index 933f75c..2607521 100644
--- a/status.22x
+++ b/status.22x
@@ -108,3 +108,5 @@ What's new
* BUILD/INSTALLATION
- Fix monolithic builds with autotools on Mac OS X.
+
+- Avoid 'ar' warning with recent binutils versions.