--as-needed is broken with gnu ld
Open
- Dominant language
- Python
- Stars
- 6.6k
- Forks
- 1.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 33
Description
it seems that --as-needed is ignored by gnu ld for libraries between --start-group/--end-group. maybe meson should put shared libraries outside of group. gold works properly btw, so another option is to use gold by default
Contributor guide
Research direction
Start by tracing how Meson emits linker arguments for --start-group/--end-group and --as-needed when using GNU ld, then compare the behavior with gold. Determine whether shared libraries should be placed outside the group or whether gold should be selected by default. Done means --as-needed is honored for libraries in the relevant GNU ld configuration, with coverage for the linker behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100