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

View File

@ -3,8 +3,9 @@ CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
LDLIBS += -L../../ -lm -lunicorn LDLIBS += -L../../ -lm -lunicorn
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
LDLIBS += -pthread
ifeq ($(UNAME_S), Linux) ifeq ($(UNAME_S), Linux)
LDLIBS += -lrt -pthread LDLIBS += -lrt
endif endif
EXECUTE_VARS = LD_LIBRARY_PATH=../../cmocka/src:../../ DYLD_LIBRARY_PATH=../../ EXECUTE_VARS = LD_LIBRARY_PATH=../../cmocka/src:../../ DYLD_LIBRARY_PATH=../../

View File

@ -2,12 +2,14 @@ CFLAGS += -Wall -Werror -Wno-unused-function -g
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1 CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
CFLAGS += -L ../../ -I ../../include CFLAGS += -L ../../ -I ../../include
CFLAGS += -L ../../cmocka/src -I ../../cmocka/include CFLAGS += -L ../../cmocka/src -I ../../cmocka/include
CFLAGS += -L /usr/local/lib -I /usr/local/include
ASFLAGS += --32 ASFLAGS += --32
OBJCOPY = objcopy OBJCOPY = objcopy
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
LDLIBS += -pthread
ifeq ($(UNAME_S), Linux) ifeq ($(UNAME_S), Linux)
LDLIBS += -lrt -pthread LDLIBS += -lrt
else ifeq ($(UNAME_S), Darwin) else ifeq ($(UNAME_S), Darwin)
OBJCOPY = gobjcopy OBJCOPY = gobjcopy
ASFLAGS = -arch i386 ASFLAGS = -arch i386