From 2476aad5b4df1abe1c60ee0970c06783d8c4137f Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 2 May 2020 00:41:07 +0800 Subject: [PATCH] sim: Fix librt can't find on macOS Signed-off-by: Xiang Xiao --- arch/sim/src/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 6f39c907b3..2db14558ed 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -194,8 +194,10 @@ endif ifeq ($(CONFIG_RPTUN),y) CSRCS += up_rptun.c HOSTSRCS += up_shmem.c +ifneq ($(CONFIG_HOST_MACOS),y) STDLIBS += -lrt endif +endif ifeq ($(CONFIG_FS_HOSTFS),y) ifneq ($(CONFIG_FS_HOSTFS_RPMSG),y)