This is the mail archive of the mailing list for the elfutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] config: Use ARFLAGS 'cr'.

By default automake uses ARFLAGS cru. 'u' is an optimization that
makes sure files are only added to the archive when they are newer
than the version already in the .a file. This optimization doesn't
work when ar is deterministic by default because then it doesn't
record timestamps in the archive. Deterministic ar is the default
now on various distributions causing multiple warnings like:

  ar: `u' modifier ignored since `D' is the default (see `U')

To suppress these warnings drop the 'u' flag.

Signed-off-by: Mark Wielaard <>
 config/ChangeLog | 4 ++++
 config/     | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/config/ChangeLog b/config/ChangeLog
index ba5cb38..29c55f5 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-07  Mark Wielaard  <>
+	* (ARFLAGS): Set to "cr".
 2015-10-05  Josh Stone  <>
 	* (%.os): Add AM_V_CC silencers.
diff --git a/config/ b/config/
index 6ad8f82..5b1bb0b 100644
--- a/config/
+++ b/config/
@@ -32,6 +32,10 @@
 AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I..
+# Drop the 'u' flag that automake adds by default. It is incompatible
+# with deterministic archives.
 # Warn about stack usage of more than 256K = 262144 bytes.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]