Skip to content

mneumann/rust-cross-dragonfly

Repository files navigation

rust-cross-dragonfly

Cross-compiling Rust to DragonFlyBSD.

This is a work in progress and is aimed at creating a rustc binary to run natively on DragonFly. The current status is that it can cross-compile rustc to DragonFly.

Read this document on how to cross-compile Rust to Dragonfly.

Dependencies on Linux

Basic dependencies needed to build rust.

Dependencies on Dragonfly

We need to build the following libraries on a DragonFly system, as we can't easily cross-compile them on a Linux system:

  • libuv
  • llvm (our patched version)
  • rustllvm (easy to compile as we already build llvm on DragonFly)

To build, we need:

  • gmake
  • cmake
  • git
  • perl
  • libtool
  • automake
  • python

We need to make the following change as root user:

ln -s /usr/local/bin/perl /usr/bin/perl

This is because git-submodule uses a hard-coded perl.

About

Cross-compiling Rust to DragonFlyBSD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published