From de9083a5329c001395dcabc0425f390dee2f6e73 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 21 Jan 2017 22:22:09 +0800 Subject: [PATCH] test: fix missng pthread functions --- tests/regress/Makefile | 4 ++-- tests/unit/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/regress/Makefile b/tests/regress/Makefile index c7da4ec4..67c779df 100644 --- a/tests/regress/Makefile +++ b/tests/regress/Makefile @@ -1,9 +1,9 @@ CFLAGS += -Wall -Werror -I../../include -LDLIBS += -L../../ -lpthread -lm -lunicorn +LDLIBS += -L../../ -lm -lunicorn UNAME_S := $(shell uname -s) ifeq ($(UNAME_S), Linux) -LDLIBS += -lrt +LDLIBS += -lrt -pthread endif EXECUTE_VARS = LD_LIBRARY_PATH=../../cmocka/src:../../ DYLD_LIBRARY_PATH=../../ diff --git a/tests/unit/Makefile b/tests/unit/Makefile index 57b8c038..dba6b210 100644 --- a/tests/unit/Makefile +++ b/tests/unit/Makefile @@ -1,13 +1,13 @@ CFLAGS += -Wall -Werror -Wno-unused-function -g CFLAGS += -L ../../ -I ../../include CFLAGS += -L ../../cmocka/src -I ../../cmocka/include -LDLIBS += -lcmocka -lunicorn UNAME_S := $(shell uname -s) ifeq ($(UNAME_S), Linux) -LDLIBS += -lrt +LDLIBS += -lrt -pthread endif +LDLIBS += -lcmocka -lunicorn EXECUTE_VARS = LD_LIBRARY_PATH=../../cmocka/src:../../ DYLD_LIBRARY_PATH=../../