about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-05-09 18:49:32 +0200
committerhexcoder- <heiko@hexco.de>2020-05-09 18:49:32 +0200
commit8e9f507bbc594e187bbb06825c5e4a4ddfb87837 (patch)
tree17b653360fb9c6778f2ad13e475d9a6f9ca1c2c5
parentc380819e02b3c36bc116f938e6685b5c315df827 (diff)
downloadafl++-8e9f507bbc594e187bbb06825c5e4a4ddfb87837.tar.gz
unicorn_mode/samples/persistent/Makefile: fix non-Linux support
-rw-r--r--unicorn_mode/samples/persistent/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/unicorn_mode/samples/persistent/Makefile b/unicorn_mode/samples/persistent/Makefile
index 9c7ed7aa..9596facc 100644
--- a/unicorn_mode/samples/persistent/Makefile
+++ b/unicorn_mode/samples/persistent/Makefile
@@ -17,9 +17,9 @@ CFLAGS += -Wall -Werror -I../../unicornafl/include
 
 LDFLAGS += -L$(LIBDIR) -lpthread -lm
 
-_LRT = $(_UNIQ)$(UNAME_S:Linux=)
-__LRT = $(_LRT:$(_UNIQ)=-lrt)
-LRT = $(__LRT:$(_UNIQ)=)
+_LRT = $(_UNIQ)$(UNAME_S)
+__LRT = $(_LRT:$(_UNIQ)Linux=-lrt)
+LRT = $(__LRT:$(_UNIQ)$(UNAME_S)=)
 
 LDFLAGS += $(LRT)
 
@@ -48,3 +48,6 @@ debug: harness-debug.o
 
 fuzz: harness
 	../../../afl-fuzz -m none -i sample_inputs -o out -- ./harness @@
+
+debugmake:
+	@echo UNAME_S=$(UNAME_S), _LRT=$(_LRT), __LRT=$(__LRT), LRT=$(LRT)