Skip to content

Issues with Static Libraries and gcc-arm-none-eabi Compiler #12300

Closed Answered by haydenridd
haydenridd asked this question in Q&A
Discussion options

You must be logged in to vote

Closing this because I've confirmed it's not a Meson specific issue, but just an issue I need to figure out w/ the arm-none-eabi compiler in regards to static libraries. Turns out the way I was compiling w/ CMake (using PUBLIC for my static library sources) was "sidestepping" the issue by still manually linking in the individual source object files into my final .elf. Changing my target_sources call to use the PRIVATE keyword produces the same behavior (and an identical .map file) as the behavior with Meson.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@haydenridd
Comment options

@haydenridd
Comment options

@haydenridd
Comment options

Answer selected by haydenridd
Comment options

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
Q&A
Labels
None yet
2 participants