]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Redirect output of ranlib to /dev/null
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 22 Jan 2019 17:32:08 +0000 (18:32 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 23 Jan 2019 15:22:13 +0000 (16:22 +0100)
./configure on Mac OS logs:
checking whether ranlib supports D option... error: /Library/Developer/CommandLineTools/usr/bin/ranlib: unknown option character `D' in: -D
Usage: /Library/Developer/CommandLineTools/usr/bin/ranlib [-sactfqLT] [-] archive [...]
no

This is quite noisy.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
configure.ac

index 0636177e8510240b81ddec395a7ec989e14eec26..1e34546329e50b57ec1f8e4ebe9a3f557fda24be 100755 (executable)
@@ -360,7 +360,7 @@ AC_SUBST([ARFLAGS])
 AC_SUBST([AR_FLAGS])
 
 AC_MSG_CHECKING([whether $RANLIB supports D option])
-if $RANLIB -D conftest.a; then
+if $RANLIB -D conftest.a >/dev/null 2>/dev/null; then
   AC_MSG_RESULT([yes])
   RANLIB="$RANLIB -D"
 else