From: Rich Felker Date: Thu, 13 Sep 2018 02:43:38 +0000 (-0400) Subject: configure: only try -Qunused-arguments for clang X-Git-Tag: v1.1.21~98 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7634101069db26b003adeec09c6aa14646363557;p=oweals%2Fmusl.git configure: only try -Qunused-arguments for clang other compilers don't need this option, but gcc 3 and perhaps others accept it despite not understanding it, then print warnings about it at build time. omitting it when not needed will also help shorten the command lines. --- diff --git a/configure b/configure index 6e489a1d..de2add15 100755 --- a/configure +++ b/configure @@ -507,7 +507,7 @@ tryflag CFLAGS_AUTO -Werror=pointer-arith # parameter to stop printing warnings about LDFLAGS passed during # compiling stage and CFLAGS passed during linking stage. # -tryflag CFLAGS_AUTO -Qunused-arguments +test "$cc_family" = clang && tryflag CFLAGS_AUTO -Qunused-arguments if test "x$warnings" = xyes ; then tryflag CFLAGS_AUTO -Wall