From 613087c02bd6bf1a95c71790844bf9d770e54e0e Mon Sep 17 00:00:00 2001 From: cyan4973 Date: Sat, 4 Feb 2017 23:36:12 -0800 Subject: [PATCH] Silence zlib detection routine When it fails, $(CC) sends error message into stderr redirected to /dev/null --- programs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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