From: cyan4973 Date: Sun, 5 Feb 2017 07:36:12 +0000 (-0800) Subject: Silence zlib detection routine X-Git-Tag: v1.1.3^2~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=613087c02bd6bf1a95c71790844bf9d770e54e0e;p=thirdparty%2Fzstd.git Silence zlib detection routine When it fails, $(CC) sends error message into stderr redirected to /dev/null --- diff --git a/programs/Makefile b/programs/Makefile index 9746ec4ed..599bef694 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -67,7 +67,7 @@ endif # zlib detection VOID = /dev/null -HAVE_ZLIB := $(shell echo "int main(){}" | $(CC) -o $(VOID) -x c - -lz && echo 1 || echo 0) +HAVE_ZLIB := $(shell echo "int main(){}" | $(CC) -o $(VOID) -x c - -lz 2> $(VOID) && echo 1 || echo 0) ifeq ($(HAVE_ZLIB), 1) ZLIBCPP = -DZSTD_GZDECOMPRESS ZLIBLD = -lz