mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 01:45:31 +00:00
python: only preload librt.so on Linux
This commit is contained in:
parent
4805407fb6
commit
55e61f65e4
|
@ -9,7 +9,13 @@ SAMPLE := $(SAMPLE:sample_batch_reg=)
|
||||||
SAMPLE := $(SAMPLE:sample_x86_32_gdt_and_seg_regs=)
|
SAMPLE := $(SAMPLE:sample_x86_32_gdt_and_seg_regs=)
|
||||||
SAMPLE := $(SAMPLE:shellcode=)
|
SAMPLE := $(SAMPLE:shellcode=)
|
||||||
|
|
||||||
|
UNAME_S := $(shell uname -s)
|
||||||
|
ifeq ($(UNAME_S), Linux)
|
||||||
ENV_VARS = LD_PRELOAD=librt.so LD_LIBRARY_PATH=../ DYLD_LIBRARY_PATH=../
|
ENV_VARS = LD_PRELOAD=librt.so LD_LIBRARY_PATH=../ DYLD_LIBRARY_PATH=../
|
||||||
|
else
|
||||||
|
ENV_VARS = LD_LIBRARY_PATH=../ DYLD_LIBRARY_PATH=../
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
.PHONY: build install python c clean check test
|
.PHONY: build install python c clean check test
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue