You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/05/01 19:09:55 UTC

[incubator-nuttx] branch master updated: sim: Fix librt can't find on macOS

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 2476aad  sim: Fix librt can't find on macOS
2476aad is described below

commit 2476aad5b4df1abe1c60ee0970c06783d8c4137f
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat May 2 00:41:07 2020 +0800

    sim: Fix librt can't find on macOS
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/sim/src/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile
index 6f39c90..2db1455 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)