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

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