boards/sim: Change CONFIG_LIBCXX to CONFIG_HAVE_CXXINITIALIZE

since the contructor is required with other libc++ implementation

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-01-20 02:05:40 +08:00 committed by Xiang Xiao
parent af7fd718cc
commit 67fc54dd3d
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ endif
HOSTSRCS = up_hostirq.c up_hostmemory.c up_hosttime.c up_simuart.c up_hostmisc.c HOSTSRCS = up_hostirq.c up_hostmemory.c up_hosttime.c up_simuart.c up_hostmisc.c
STDLIBS += -lpthread STDLIBS += -lpthread
ifeq ($(CONFIG_HOST_MACOS),y) ifeq ($(CONFIG_HOST_MACOS),y)
ifeq ($(CONFIG_LIBCXX),y) ifeq ($(CONFIG_HAVE_CXXINITIALIZE),y)
# Note: up_macho_init.c is not in CSRCS because it's picky about # Note: up_macho_init.c is not in CSRCS because it's picky about
# the place in the object list for linking. Namely, its constructor # the place in the object list for linking. Namely, its constructor
# should be the first one in the executable. # should be the first one in the executable.