Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion import/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ ifeq ($(CONFIG_BUILD_KERNEL),y)
ifeq ($(CONFIG_HAVE_CXX),y)
LDLIBS += -lxx
endif
ifneq ($(CONFIG_LIBM),y)
ifeq ($(CONFIG_LIBM_TOOLCHAIN),y)
LIBM = ${shell "$(CC)" $(ARCHCPUFLAGS) --print-file-name=libm.a}
ifneq ($(LIBM),".")
LDLIBPATH += -L "${shell dirname $(LIBM)}"
LDLIBS += -lm
endif
else ifneq($(CONFIG_LIBM_NONE),)
LDLIBS += -lm
endif
endif

Expand Down