From 9ab0a540f2b0f2b0427c33e198ca06d60d959182 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 14 Aug 2015 22:25:20 +0200 Subject: [PATCH] Fix harmless build warnings with newer binutils I see a lot of those on Rawhide: ar: `u' modifier ignored since `D' is the default (see `U') It's going to take a while to get this fixed upstream. Meanwhile, silence the warnings. Macro copied from libvirt. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index be1f02ef..9fbb7a59 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,11 @@ AC_CONFIG_SRCDIR(src/collectd.c) AC_CONFIG_HEADERS(src/config.h) AC_CONFIG_AUX_DIR([libltdl/config]) +dnl older automake's default of ARFLAGS=cru is noisy on newer binutils; +dnl we don't really need the 'u' even in older toolchains. Then there is +dnl older libtool, which spelled it AR_FLAGS +m4_divert_text([DEFAULTS], [: "${ARFLAGS=cr} ${AR_FLAGS=cr}"]) + m4_ifdef([LT_PACKAGE_VERSION], # libtool >= 2.2 [ -- 2.11.0