From 7665310daafa15836e47c9c0b7cf005698162c5d Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Mon, 19 Dec 2016 23:50:21 +0800 Subject: [PATCH] samples: add -lrt for clock_gettime(), as suggested by Stephen --- samples/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/Makefile b/samples/Makefile index da49f5a4..dc212cd5 100644 --- a/samples/Makefile +++ b/samples/Makefile @@ -13,8 +13,8 @@ AR_EXT = a V ?= 0 CFLAGS += -Wall -Werror -I../include -LDFLAGS += -L$(LIBDIR) -lunicorn -lpthread -lm -LDLIBS += -lpthread -lunicorn -lm +LDFLAGS += -L$(LIBDIR) -lunicorn -lpthread -lm -lrt +LDLIBS += -lpthread -lunicorn -lm -lrt ifneq ($(CROSS),) CC = $(CROSS)gcc