summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2015-10-07 13:43:32 +0200
committerMark Wielaard <mjw@redhat.com>2015-10-12 12:22:59 +0200
commit7b74830ec65081a8ea1be6d544ccd6ed0c61eaa1 (patch)
treec6b4d17827cb4d4c544010d69c8fbbd2cb6f4359
parentc04f491fa2a4b82db49fba347ed587c7cf7dc6d6 (diff)
downloadelfutils-7b74830ec65081a8ea1be6d544ccd6ed0c61eaa1.tar.gz
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 <mjw@redhat.com>
-rw-r--r--config/ChangeLog4
-rw-r--r--config/eu.am4
2 files changed, 8 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 41678214..77f9a114 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-07 Mark Wielaard <mjw@redhat.com>
+
+ * eu.am (ARFLAGS): Set to "cr".
+
2015-10-09 Josh Stone <jistone@redhat.com>
* eu.am (print-%): New target to print any variable.
diff --git a/config/eu.am b/config/eu.am
index 1e332efa..0095da5a 100644
--- a/config/eu.am
+++ b/config/eu.am
@@ -32,6 +32,10 @@
DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
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.
+ARFLAGS = cr
+
# Warn about stack usage of more than 256K = 262144 bytes.
if ADD_STACK_USAGE_WARNING
STACK_USAGE_WARNING=-Wstack-usage=262144