path: root/
diff options
authorYorhel <>2019-06-12 15:47:36 +0200
committerYorhel <>2019-06-12 15:47:36 +0200
commitf423f9835a90ebf195a4edd3dfb9674adf10f4b2 (patch)
treebae4894af2f5c4e296675ff78272dbd68a67990f /
parent1906bf176323ae669257e7142044e6b4b410fca8 (diff)
Support cross-compilation from Linux to Windows
Diffstat (limited to '')
1 files changed, 11 insertions, 4 deletions
diff --git a/ b/
index 9d9ac41..88d327d 100644
--- a/
+++ b/
@@ -29,7 +29,14 @@ For Arch Linux & MSYS2-MinGW64: `pacman -S base-devel`
- Discover that you suddenly have a working `tor-static` binary.
The generated binary is not *entirely* static because it still links against
-your system libraries. If you have
-[musl-cross]( built and installed in
-`/opt/cross`, then you can run `./` to "cross"-compile a
-fully static binary. Scripts for other arches are TBD.
+your system libc. Handy scripts are included for cross-compilation:
+- `` will build a fully static binary linked against musl
+ libc. Requirements: musl-based cross compiler in `/opt/cross`, you can get
+ these from [musl-cross]( or
+ [](
+- `` will cross-compile a Windows binary, requires a
+ mingw32 cross compiler in `/opt/cross` ([]( has
+ these).
+More targets TBD.