Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prelinking support for static libraries. #7983

Merged
merged 1 commit into from
Dec 3, 2020
Merged

Add prelinking support for static libraries. #7983

merged 1 commit into from
Dec 3, 2020

Conversation

jpakkane
Copy link
Member

This is still fairly WIP and supports only GCC.


The static library gains a new `prelink` keyword argument that can be
used to prelink object files in that target. This is mostly useful in
embedded projects.
Copy link
Contributor

@marc-h38 marc-h38 Nov 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think partial linking is less rare in embedded projects only because static libraries are less rare in embedded projects. I would not mention "embedded" here. This new feature is only about static libraries anyway.

I found the two use cases listed in #5499 very interesting, I think it would be much better to mention these:

  • "namespaces" more or less equivalent to dllexport but for static libraries
  • partial LTO which is better than no LTO at all when building with different toolchains.

@jpakkane
Copy link
Member Author

This should be ready now. Please speak up if you have comments.

@jpakkane jpakkane merged commit c21b04b into master Dec 3, 2020
@jpakkane jpakkane deleted the prelink branch December 3, 2020 20:58
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