Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I am writing a C module to use with the nrf port. I want to add my own libraries to the build, however I've noticed that the LIBS variable is cleared on row 166 in the nrf Makefile after the USER_C_MODULES have been included. Is there a reason why it is cleared? I want the nrf Makefile to be independent of my C module so I would prefer not to alter it myself in order to include my own libs.

You must be logged in to vote

Replies: 2 comments

Comment options

andrewleech
Mar 15, 2024
Collaborator Sponsor

I see what you mean in the Makefile; that really looks like a typo, a mistake. A PR to clean that up should be easy enough to get merged I'd expect!

You must be logged in to vote
0 replies
Comment options

andrewleech
Mar 22, 2024
Collaborator Sponsor

That being said, in a user C module you can set lib / link flags more commonly with LDFLAGS_USERMOD

https://github.com/micropython/micropython/blob/master/examples%2Fusercmodule%2Fcppexample%2Fmicropython.mk#L12

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🔌
nRF
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.