Cross-compiling Rust to DragonFlyBSD
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


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.