From: Ruben Kerkhof Date: Fri, 14 Aug 2015 20:25:20 +0000 (+0200) Subject: Fix harmless build warnings with newer binutils X-Git-Tag: collectd-5.5.1~52^2~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9ab0a540f2b0f2b0427c33e198ca06d60d959182;p=collectd.git 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. --- 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 [