termux-packages/packages/unicorn/samples-Makefile.patch

21 lines
439 B
Diff

diff --git a/samples/Makefile b/samples/Makefile
index 4724f17..8303ba5 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -14,12 +14,12 @@ V ?= 0
CFLAGS += -Wall -Werror -I../include
-LDFLAGS += -L$(LIBDIR) -lunicorn -lpthread -lm
+LDFLAGS += -L$(LIBDIR) -lunicorn -lm
ifeq ($(UNAME_S), Linux)
-LDFLAGS += -lrt
+LDFLAGS +=
endif
-LDLIBS += -lpthread -lunicorn -lm
+LDLIBS += -lunicorn -lm
ifneq ($(CROSS),)
CC = $(CROSS)gcc