aboutsummaryrefslogtreecommitdiff
path: root/utils/afl_network_proxy/GNUmakefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-08-27 17:06:46 +0200
committerGitHub <noreply@github.com>2021-08-27 17:06:46 +0200
commit353d402aaf9296c7dbd47e66fbbc6e59179c4e44 (patch)
tree0ba644854a6d51cdc9e8a2d52ca88b549109f736 /utils/afl_network_proxy/GNUmakefile
parent2e15661f184c77ac1fbb6f868c894e946cbb7f17 (diff)
parent7a2f81e0d992cf0f20d8d2fed26310c03c8b4fa9 (diff)
downloadafl++-353d402aaf9296c7dbd47e66fbbc6e59179c4e44.tar.gz
Merge pull request #1077 from AFLplusplus/dev
push to stable
Diffstat (limited to 'utils/afl_network_proxy/GNUmakefile')
-rw-r--r--utils/afl_network_proxy/GNUmakefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/afl_network_proxy/GNUmakefile b/utils/afl_network_proxy/GNUmakefile
index 0b55dc2c..7c8c22ff 100644
--- a/utils/afl_network_proxy/GNUmakefile
+++ b/utils/afl_network_proxy/GNUmakefile
@@ -3,6 +3,8 @@ BIN_PATH = $(PREFIX)/bin
HELPER_PATH = $(PREFIX)/lib/afl
DOC_PATH = $(PREFIX)/share/doc/afl
+SYS = $(shell uname -s)
+
PROGRAMS = afl-network-client afl-network-server
HASH=\#
@@ -13,6 +15,10 @@ ifdef STATIC
CFLAGS += -static
endif
+ifeq "$(SYS)" "SunOS"
+ LDFLAGS += -lnsl -lsocket
+endif
+
ifeq "$(shell echo '$(HASH)include <libdeflate.h>@int main() { struct libdeflate_compressor *d = libdeflate_alloc_compressor(1); return 0;}' | tr @ '\n' | $(CC) $(CFLAGS) -x c - -o .test2 -ldeflate 2>/dev/null && echo 1 || echo 0 ; rm -f .test2 )" "1"
CFLAGS += -DUSE_DEFLATE=1
LDFLAGS += -ldeflate