about summary refs log tree commit diff
path: root/utils/afl_untracer/Makefile
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2023-09-02 10:04:14 +0000
committerDavid Carlier <devnexen@gmail.com>2023-09-02 10:04:14 +0000
commit2c40fc4ae8fe59580b13fa1e7dffa04c65bd6ae4 (patch)
tree1f0d86116e720e8f223d88c6ae4f69bb03aa8e05 /utils/afl_untracer/Makefile
parent1604351368c26a1dd91c43c054fb466b8093e86e (diff)
downloadafl++-2c40fc4ae8fe59580b13fa1e7dffa04c65bd6ae4.tar.gz
afl untracer haiku build fix.
Diffstat (limited to 'utils/afl_untracer/Makefile')
-rw-r--r--utils/afl_untracer/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/afl_untracer/Makefile b/utils/afl_untracer/Makefile
index 14a09b41..264aebe5 100644
--- a/utils/afl_untracer/Makefile
+++ b/utils/afl_untracer/Makefile
@@ -3,11 +3,16 @@ ifdef DEBUG
 else
   OPT=-O3
 endif
+SYS = $(shell uname -s)
+DL =
+ifeq "$(SYS)" "Linux"
+    DL = -ldl
+endif
 
 all:	afl-untracer libtestinstr.so
 
 afl-untracer:	afl-untracer.c
-	$(CC) $(OPT) -I../../include -g -o afl-untracer afl-untracer.c -ldl
+	$(CC) $(OPT) -I../../include -g -o afl-untracer afl-untracer.c $(DL)
 
 libtestinstr.so:	libtestinstr.c
 	$(CC) -g -O0 -fPIC -o libtestinstr.so -shared libtestinstr.c