diff options
| author | vanhauser-thc <vh@thc.org> | 2024-06-21 14:40:16 +0200 |
|---|---|---|
| committer | vanhauser-thc <vh@thc.org> | 2024-06-21 14:40:23 +0200 |
| commit | ecb5854be08fa978be3320c1f8333f6cc3261fec (patch) | |
| tree | dbfaa691e9f3d311531c229bc316066742758d9f /GNUmakefile | |
| parent | 25b650f59d2c8045104c77b5bd9edfba662ff0aa (diff) | |
| download | afl++-ecb5854be08fa978be3320c1f8333f6cc3261fec.tar.gz | |
add zlib compression for fast resume
Diffstat (limited to 'GNUmakefile')
| -rw-r--r-- | GNUmakefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index e79d3f83..9f862120 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -441,6 +441,14 @@ test_shm: @echo "[-] shmat seems not to be working, switching to mmap implementation" endif +ifeq "$(shell echo '$(HASH)include <zlib.h>@int main() {return 0; }' | tr @ '\n' | $(CC) $(CFLAGS) -Werror -x c - -lz -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1" + override SPECIAL_PERFORMANCE += -DHAVE_ZLIB + override LDFLAGS += -lz + $(info [+] ZLIB detected) +else + $(info [!] Warning: no ZLIB detected) +endif + .PHONY: test_python ifeq "$(PYTHON_OK)" "1" test_python: |
