]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: override AR_FLAGS to silence warning
authorDaniel Stenberg <daniel@haxx.se>
Tue, 29 May 2018 08:26:06 +0000 (10:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 29 May 2018 13:41:14 +0000 (15:41 +0200)
The automake default ar flags are 'cru', but the 'u' flag in there
causes warnings on many modern Linux distros. Removing 'u' may have a
minor performance impact on older distros but should not cause harm.

Explained on the automake mailing list already back in April 2015:

https://www.mail-archive.com/automake-patches@gnu.org/msg07705.html

Reported-by: elephoenix on github
Fixes #2617
Closes #2619

configure.ac

index 69a185044b7075f080b46bfcab557e71db225b7d..f5f4e77173bfc7d49f3bdccb1789b06bb9dba299 100755 (executable)
@@ -188,7 +188,8 @@ AC_CANONICAL_HOST
 dnl Get system canonical name
 AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])
 
-dnl Checks for programs.
+# Silence warning: ar: 'u' modifier ignored since 'D' is the default
+AC_SUBST(AR_FLAGS, [cr])
 
 dnl This defines _ALL_SOURCE for AIX
 CURL_CHECK_AIX_ALL_SOURCE