From 69b784fc45fc134438e75e4a8f4b0c56015e509a Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Tue, 19 Jan 2016 09:11:25 +0800 Subject: [PATCH] samples: LDFLAGS += -lpthread. this fixes issue 382 --- samples/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/Makefile b/samples/Makefile index 0904512a..02a1f66d 100644 --- a/samples/Makefile +++ b/samples/Makefile @@ -27,7 +27,7 @@ LIBDIR = $(BUILDDIR) endif CFLAGS += -Wall -I$(INCDIR) -LDFLAGS += -L$(LIBDIR) -l$(LIBNAME) +LDFLAGS += -lpthread -L$(LIBDIR) -l$(LIBNAME) LDFLAGS_STATIC += $(UNICORN_DEP_LIBS_STATIC) ifeq ($(CROSS),)