Skip to content

Fix build with single-pass linkers #101

Merged
jschwe merged 3 commits into
servo:mainfrom
jschwe:fix_build
Jul 12, 2026
Merged

Fix build with single-pass linkers #101
jschwe merged 3 commits into
servo:mainfrom
jschwe:fix_build

Conversation

@jschwe

@jschwe jschwe commented Jul 11, 2026

Copy link
Copy Markdown
Member

Note that the order we build the libraries in, affects the order they are linked in.
To support single-pass linkers liked BFD, or gnu gold linker (ld) the libraries must be specified in the correct order on the final link line, and we can control that by modifying the order they are built in. (cc-rs prints instructions telling cargo to link the native static library we built)

jschwe added 2 commits July 11, 2026 18:53
Note that the order we build the libraries in,
affects the order they are linked in.
@jschwe
jschwe requested a review from sagudev July 11, 2026 17:09

@sagudev sagudev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Otherwise LGTM

Comment thread build.rs Outdated
@jschwe
jschwe added this pull request to the merge queue Jul 12, 2026
Merged via the queue into servo:main with commit 505f844 Jul 12, 2026
9 checks passed
@jschwe
jschwe deleted the fix_build branch July 12, 2026 09:13
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