mesonbuild / mesonbuild/meson

--as-needed is broken with gnu ld

Open
#4,615 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.