Skip to content

feat(build): statically link libkrun and libgvproxy into boxlite-shim#310

Merged
DorianZheng merged 1 commit intomainfrom
feat/static-linking
Feb 27, 2026
Merged

feat(build): statically link libkrun and libgvproxy into boxlite-shim#310
DorianZheng merged 1 commit intomainfrom
feat/static-linking

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

  • Build libgvproxy as c-archive instead of c-shared (static .a)
  • Build libkrun as staticlib via cargo rustc --crate-type staticlib
  • Build shim with musl target on Linux for fully static binary
  • Refactor libkrun-sys build.rs into Fetcher/LibBuilder/LibFixup/MacToolchain
  • Add serde(default) to BoxState.health_status for backward compat
  • Reformat C SDK header (one parameter per line, re-wrapped comments)

- Build libgvproxy as c-archive instead of c-shared (static .a)
- Build libkrun as staticlib via `cargo rustc --crate-type staticlib`
- Build shim with musl target on Linux for fully static binary
- Refactor libkrun-sys build.rs into Fetcher/LibBuilder/LibFixup/MacToolchain
- Add serde(default) to BoxState.health_status for backward compat
- Reformat C SDK header (one parameter per line, re-wrapped comments)
@DorianZheng DorianZheng merged commit b605c6a into main Feb 27, 2026
17 of 18 checks passed
@DorianZheng DorianZheng deleted the feat/static-linking branch February 27, 2026 06:22
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.

1 participant