Skip to content

Instantly share code, notes, and snippets.

@ntrepid8
Last active October 7, 2016 05:24
Show Gist options
  • Save ntrepid8/9dff586d5d838b6273257556813bd3ce to your computer and use it in GitHub Desktop.
Save ntrepid8/9dff586d5d838b6273257556813bd3ce to your computer and use it in GitHub Desktop.
muslrust-cross-notes

MuslRust-Cross Notes

There are several primary steps:

  1. build toolchain with crosstool-ng
  2. compile libunwind and add to toolchain
  3. compile std with the new toolchain
  4. link rust-cross toolchain with rustup
  5. build rust binaries :)

Some helpful links:

building libunwind

The following environment variables must not be set when building libunwind but are required to build musl:

export CXXFLAGS=-Wa,-mrelax-relocations=no
export CFLAGS=-fPIC -Wa,-mrelax-relocations=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment