Silence zlib detection routine

When it fails, $(CC) sends error message into stderr
redirected to /dev/null
This commit is contained in:
cyan4973 2017-02-04 23:36:12 -08:00
parent 6f31b76d1d
commit 613087c02b

View File

@ -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