Skip to content
(Cross) Compile FreeBSD binaries on Linux
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Dockerfile
LICENSE.txt
README.md
build
fix-links

README.md

freebsd-cross-build

This creates a container that can be used to build FreeBSD binaries natively on Linux

To build:

./build

(this finishes by running 'docker build -t freebsd-cross-build .')

To run:

docker run --rm -it freebsd-cross-build

There is /freebsd/bin on the path. It has all of the build tools (e.g. x86_64-pc-freebsd9-gcc)

It is likely you would add a -v switch to the run (to put your code on a mount).

You can’t perform that action at this time.