import/mk: Use libm from the export package when defined.
Nuttx exports libm.a when `CONFIG_LIBM` is enabled. Adjust the application import makefile to pick this up when linking.
This commit is contained in:
parent
a21476beab
commit
877509762c
@ -70,12 +70,14 @@ ifeq ($(CONFIG_BUILD_KERNEL),y)
|
|||||||
ifeq ($(CONFIG_HAVE_CXX),y)
|
ifeq ($(CONFIG_HAVE_CXX),y)
|
||||||
LDLIBS += -lxx
|
LDLIBS += -lxx
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_LIBM),y)
|
ifeq ($(CONFIG_LIBM_TOOLCHAIN),y)
|
||||||
LIBM = ${shell "$(CC)" $(ARCHCPUFLAGS) --print-file-name=libm.a}
|
LIBM = ${shell "$(CC)" $(ARCHCPUFLAGS) --print-file-name=libm.a}
|
||||||
ifneq ($(LIBM),".")
|
ifneq ($(LIBM),".")
|
||||||
LDLIBPATH += -L "${shell dirname $(LIBM)}"
|
LDLIBPATH += -L "${shell dirname $(LIBM)}"
|
||||||
LDLIBS += -lm
|
LDLIBS += -lm
|
||||||
endif
|
endif
|
||||||
|
else ifneq($(CONFIG_LIBM_NONE),)
|
||||||
|
LDLIBS += -lm
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user