simplified zlib detection
This commit is contained in:
+1
-2
@@ -67,9 +67,8 @@ endif
|
|||||||
|
|
||||||
# zlib detection
|
# zlib detection
|
||||||
VOID = /dev/null
|
VOID = /dev/null
|
||||||
HAVE_ZLIB := $(shell printf '\#include <zlib.h>\nint main(){}' | $(CC) -o have_zlib -x c - -lz 2> $(VOID) && echo 1 || echo 0)
|
HAVE_ZLIB := $(shell printf '\#include <zlib.h>\nint main(){}' | $(CC) -o have_zlib -x c - -lz 2> $(VOID) && rm have_zlib$(EXT) && echo 1 || echo 0)
|
||||||
ifeq ($(HAVE_ZLIB), 1)
|
ifeq ($(HAVE_ZLIB), 1)
|
||||||
TEMP := $(shell rm have_zlib$(EXT))
|
|
||||||
ZLIBCPP = -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS
|
ZLIBCPP = -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS
|
||||||
ZLIBLD = -lz
|
ZLIBLD = -lz
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user