build: silence an ar warning
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 13 Sep 2017 08:30:28 +0000 (10:30 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 13 Sep 2017 08:32:31 +0000 (10:32 +0200)
In some configurations ar prints the following warnings:

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

Silence it by setting the ar flags to 'cr' instead of 'cru' which is
the default.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
configure.ac

index 383cdf14104532c8abb37c98ac88bb255c330de3..5f808bf025c950947689b7f040bd21a4f69e8c2a 100644 (file)
@@ -27,6 +27,9 @@ AC_CONFIG_HEADER([config.h])
 
 AC_DEFINE([_GNU_SOURCE], [], [We want GNU extensions])
 
+# Silence warning: ar: 'u' modifier ignored since 'D' is the default
+AC_SUBST(AR_FLAGS, [cr])
+
 AM_PROG_AR
 AC_PROG_CC
 AC_PROG_LIBTOOL