Tests, fixes on third platform. (#1168)

MT linkage fix mainly.
This commit is contained in:
David CARLIER
2019-12-28 16:18:40 +00:00
committed by Nguyen Anh Quynh
parent 3a3bc0c22d
commit 72f7598387
3 changed files with 8 additions and 4 deletions

View File

@ -1,8 +1,9 @@
CFLAGS += -L ../../ -I ../../include
UNAME_S := $(shell uname -s)
LDFLAGS += -pthread
ifeq ($(UNAME_S), Linux)
LDFLAGS += -lrt -pthread
LDFLAGS += -lrt
endif
LDFLAGS += -lunicorn
@ -19,4 +20,4 @@ clean:
rm -rf ${ALL_TESTS}
fuzz%: fuzz%.c
$(CC) $(CFLAGS) $^ onefile.c $(LDFLAGS) -o $@
$(CC) $(CFLAGS) $^ onefile.c $(LDFLAGS) -o $@