test: fix missng pthread functions

This commit is contained in:
Nguyen Anh Quynh 2017-01-21 22:22:09 +08:00
parent 2a1b9d8e1b
commit de9083a532
2 changed files with 4 additions and 4 deletions

View file

@ -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=../../

View file

@ -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=../../