From 27a49331fce950281233a60dad7a4b43605b06be Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 22 Oct 2020 15:47:34 +0900 Subject: [PATCH] sim: Link libc++abi for LIBCXX + macOS --- arch/sim/src/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index f21bcbc0874..609693285a4 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -87,7 +87,11 @@ endif HOSTCFLAGS += -DCONFIG_USEC_PER_TICK=$(CONFIG_USEC_PER_TICK) HOSTSRCS = up_hostirq.c up_hostmemory.c up_hosttime.c up_simuart.c STDLIBS += -lpthread -ifneq ($(CONFIG_HOST_MACOS),y) +ifeq ($(CONFIG_HOST_MACOS),y) +ifeq ($(CONFIG_LIBCXX),y) + STDLIBS += -lc++abi +endif +else STDLIBS += -lrt endif