about summary refs log tree commit diff
path: root/utils/afl_network_proxy
diff options
context:
space:
mode:
Diffstat (limited to 'utils/afl_network_proxy')
-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