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

[Backport v3.7.99-ncs2-branch][nrf fromtree] cmake: linker: ld: fix duplicate LINK_FLAGS #2443

Open
wants to merge 1 commit into
base: v3.7.99-ncs2-branch
Choose a base branch
from

Conversation

adigie
Copy link
Member

@adigie adigie commented Jan 23, 2025

Original implementation of toolchain_linker_finalize duplicates the LINK_FLAGS in the link command. This can cause some problems like duplicate definitions when using link options like --whole-archive.

This commit fixes it by removing the duplicate LINK_FLAGS.

Fixes #82281

(cherry picked from commit 8413113)

Original implementation of `toolchain_linker_finalize` duplicates
the `LINK_FLAGS` in the link command. This can cause some problems
like duplicate definitions when using link options like
`--whole-archive`.

This commit fixes it by removing the duplicate `LINK_FLAGS`.

Fixes #82281

Signed-off-by: Axel Le Bourhis <[email protected]>
(cherry picked from commit 8413113)
Signed-off-by: Adrian Gielniewski <[email protected]>
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