sim: Link libc++abi for LIBCXX + macOS

This commit is contained in:
YAMAMOTO Takashi 2020-10-22 15:47:34 +09:00 • committed by Xiang Xiao
parent 3fc06ff2d1
commit 27a49331fc

View file

@ -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