Skip to content

import/mk: Use libm from the export package when defined.#2151

Merged
xiaoxiang781216 merged 1 commit intoapache:masterfrom
motec-research:mk-libm
Oct 25, 2023
Merged

import/mk: Use libm from the export package when defined.#2151
xiaoxiang781216 merged 1 commit intoapache:masterfrom
motec-research:mk-libm

Conversation

@g2gps
Copy link
Copy Markdown
Contributor

@g2gps g2gps commented Oct 23, 2023

Summary

Nuttx exports libm.a when CONFIG_LIBM is enabled. Adjust the application import makefile to pick this up when linking.

Impact

Applications using CONFIG_BUILD_KERNEL and CONIFG_LIBM can link correctly when needed.

Testing

Before this change, when trying to add CONFIG_EXAMPLES_CALIB_UDELAY

nuttx/apps/examples/calib_udelay/calib_udelay_main.c:282: undefined reference to `ceil'

With this change, the calib_udelay application links as expected.

Comment thread import/Make.defs Outdated
Nuttx exports libm.a when `CONFIG_LIBM` is enabled. Adjust the application import makefile to pick this up when linking.
@xiaoxiang781216 xiaoxiang781216 merged commit 8775097 into apache:master Oct 25, 2023
@g2gps g2gps deleted the mk-libm branch October 26, 2023 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants