From d37ae7364a3e43073f8d295da1b9485f66bc0cca Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 24 Dec 2016 15:04:34 +0800 Subject: [PATCH] samples: link RT for non-MacOS --- samples/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/samples/Makefile b/samples/Makefile index 14b04b29..938a944d 100644 --- a/samples/Makefile +++ b/samples/Makefile @@ -13,8 +13,13 @@ AR_EXT = a V ?= 0 CFLAGS += -Wall -Werror -I../include + LDFLAGS += -L$(LIBDIR) -lunicorn -lpthread -lm -LDLIBS += -lrt -lpthread -lunicorn -lm +ifneq ($(UNAME_S), Darwin) +LDFLAGS += -lrt +endif + +LDLIBS += -lpthread -lunicorn -lm ifneq ($(CROSS),) CC = $(CROSS)gcc