Skip to content

Musl tonlib build#67

Open
adsinc wants to merge 18 commits into
ston-fi:mainfrom
adsinc:musl-tonlib-build
Open

Musl tonlib build#67
adsinc wants to merge 18 commits into
ston-fi:mainfrom
adsinc:musl-tonlib-build

Conversation

@adsinc

@adsinc adsinc commented Jun 11, 2026

Copy link
Copy Markdown

Summary

This PR updates tonlib-sys for TON v2026.05 and restores support for fully static musl builds.

Changes:

  • Use the x86_64-alpine-linux-musl C/C++ target for musl cross-compilation.
  • Configure CMake for static musl builds with clang/clang++ target flags.
  • Link TON-built third-party static libraries for musl: zlib, sodium, secp256k1, OpenSSL, Abseil.
  • Link required musl runtime libraries: libm, libgcc_eh, and static libstdc++.
  • Patch TON CMake generation steps so host-built generator binaries are referenced through $<TARGET_FILE:...> during cross-compilation.
  • Avoid Cargo jobserver propagation into CMake/make for musl builds and use explicit parallelism.

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