diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2018-05-29 10:26:06 +0200 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-29 10:29:27 +0200 |
| commit | 5aef3880c6dcb4d488aec277dad4e620e1fe9436 (patch) | |
| tree | 73423456c5b82060c5b11620d4ca4432b21bc119 | |
| parent | 954284f9192ccc9719e39970f39c7ac2d9090511 (diff) | |
| download | curl-bagder/configure-fix-ar-warning.tar.gz | |
configure: override AR_FLAGS to silence warningbagder/configure-fix-ar-warning
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
Fixes #2617
| -rwxr-xr-x | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 69a185044..f5f4e7717 100755 --- a/configure.ac +++ b/configure.ac @@ -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 |
