[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 9b901cf: Avoid harmless but annoying "ar u" w
From: |
Vadim Zeitlin |
Subject: |
[lmi-commits] [lmi] master 9b901cf: Avoid harmless but annoying "ar u" warnings in autotools builds |
Date: |
Wed, 11 Jan 2017 21:14:49 +0000 (UTC) |
branch: master
commit 9b901cf72604bab0854134f7d222296786eba47c
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>
Avoid harmless but annoying "ar u" warnings in autotools builds
Use "cr" flags with ar instead of Automake current default of "cru" to avoid
warnings about "'u" modifier ignored" due to "D" flag being on by default in
the recent binutils versions, built with --enable-deterministic-archives,
used
in the latest versions of most Linux distributions.
An alternative could be to explicitly use "U" flag to disable deterministic
builds, but the (very) modest speed benefit of "u" doesn't seem to be worth
it.
---
Makefile.am | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index c5307a3..4a6be7f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,6 +35,15 @@ endif
ACLOCAL_AMFLAGS = -I aclocal
+# This is a workaround for the harmless but annoying warning
+#
+# ar: `u' modifier ignored since `D' is the default (see `U')
+#
+# given by Linux systems using recent binutils with the switch to building
+# deterministic archives (that can't include the timestamps) when building all
+# static libraries with default "cru" flags used by Automake up to 1.15.
+ARFLAGS = cr
+
##############################################################################
# All Targets
##############################################################################
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 9b901cf: Avoid harmless but annoying "ar u" warnings in autotools builds,
Vadim Zeitlin <=