mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-22 19:35:34 +00:00
regress: link on Linux with -lrt
This commit is contained in:
parent
cc45f99bec
commit
87e8532e67
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
set -ex
|
||||
mkdir cmocka
|
||||
mkdir -p cmocka
|
||||
#wget https://cmocka.org/files/1.1/cmocka-1.1.0.tar.xz -O /tmp/cmocka-1.1.0.tar.xz
|
||||
wget --no-check-certificate http://cmocka.org/files/1.1/cmocka-1.1.0.tar.xz -O /tmp/cmocka-1.1.0.tar.xz
|
||||
tar -xf /tmp/cmocka-1.1.0.tar.xz -C /tmp
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
CFLAGS += -Wall -Werror -I../../include
|
||||
LDLIBS += -L../../ -lpthread -lm -lunicorn
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S), Linux)
|
||||
LDLIBS += -lrt
|
||||
endif
|
||||
|
||||
EXECUTE_VARS = LD_LIBRARY_PATH=../../cmocka/src:../../ DYLD_LIBRARY_PATH=../../
|
||||
|
||||
TESTS_SOURCE = $(wildcard *.c)
|
||||
|
|
|
@ -3,6 +3,12 @@ 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
|
||||
endif
|
||||
|
||||
|
||||
EXECUTE_VARS = LD_LIBRARY_PATH=../../cmocka/src:../../ DYLD_LIBRARY_PATH=../../
|
||||
|
||||
ifeq ($(UNICORN_ASAN),yes)
|
||||
|
|
Loading…
Reference in a new issue