summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-12 22:43:38 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 22:43:38 -0400
commit7634101069db26b003adeec09c6aa14646363557 (patch)
tree8e185ccbd99b5a40389d69dbba18d990015c4ee0
parent3e14bbcd1979376b188bfabb816ff828608fb5d7 (diff)
downloadmusl-7634101069db26b003adeec09c6aa14646363557.tar.gz
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.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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