A set of Dockerfiles to statically cross-compile various "hacker tools" using
musl-cross-make (https://github.com/richfelker/musl-cross-make). This is a work in progress and I'll be adding recipes and further documentation over time.
make MUSL_TARGET=some_target_tuple to compile everything. Tested targets so far:
But others are very likely to work. Building everything currently needs about 2GB of disk per target and it helps to have a big machine with NVMe storage and plenty of RAM. A complete build for a single architecture currently takes about 15 minutes on a Ryzen 4750U.
You can build individual binaries by specifying the recipe name as an argument to
make. Dependency resolution will be handled automatically. These recipes are included at the moment:
openssl-0.9.8zh(insecure, not for general use)
More tools and documentation will be added over time.
To validate that all your binaries came out right, run
make check. This will list any binariesin the
output directory which don't seem to have been statically linked.
There are numerous projects and approaches for building static tool binaries, but this one is mine. Sometimes you just find yourself on a little-endian softfloat MIPS box and you really need a specific tool!
Some goals of the project:
And yet to be added:
E-mail email@example.com. I'd love to receive your improvements. No, I don't really know how to use Docker.