BUILD_KERNEL: Include CPP libraries only if configured to do so
Otherwise build without HAVE_CXX flag fails
This commit is contained in:
parent
0b722cc864
commit
c1453b589d
@ -66,7 +66,10 @@ LDLIBPATH = $(addprefix -L,$(call CONVERT_PATH,$(TOPDIR)$(DELIM)libs))
|
||||
# Link with user libraries
|
||||
|
||||
ifeq ($(CONFIG_BUILD_KERNEL),y)
|
||||
LDLIBS = -lapps -lxx -lmm -lc -lproxies
|
||||
LDLIBS = -lapps -lmm -lc -lproxies
|
||||
ifeq ($(CONFIG_HAVE_CXX),y)
|
||||
LDLIBS += -lxx
|
||||
endif
|
||||
ifneq ($(CONFIG_LIBM),y)
|
||||
LIBM = ${shell "$(CC)" $(ARCHCPUFLAGS) --print-file-name=libm.a}
|
||||
ifneq ($(LIBM),".")
|
||||
|
Loading…
x
Reference in New Issue
Block a user