]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
config: Use ARFLAGS 'cr'.
authorMark Wielaard <mjw@redhat.com>
Wed, 7 Oct 2015 11:43:32 +0000 (13:43 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 12 Oct 2015 10:22:59 +0000 (12:22 +0200)
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>
config/ChangeLog
config/eu.am

index 41678214d84388f455360325c47db98d8d345989..77f9a114f988a92aac8befeac6618040c5cfd7fa 100644 (file)
@@ -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.
index 1e332efa1e9e39210534b91a00f21b36664356dd..0095da5ac458d1fcb3a8098e2124d0c64f19f4a1 100644 (file)
 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