| Name | Modified | Size | Downloads / Week | 
|---|---|---|---|
| Parent folder | |||
| 15.2.0 | 2025-10-25 | ||
| README.md | 2025-10-25 | 1.7 kB | |
| Totals: 2 Items | 1.7 kB | 177 | |
Linux Cross Build Chain
C/C++ cross-compiler for Windows targeting Linux using (unofficial build):
- gmp
- mpfr
- mpc
- isl
- cloog
- mingw-w64
- gcc
- lib-musl
- Kernel headers
You need at least core2 command set support to run this application.
This toolchain is still experimental. Expect errors and undefined behaviors.
Usage
This cross-compiler toolchain works very much like the native MinGW-W64 one.
However, it comes with the following caveats:
- There is no -m32/-m64 switch. Use the specific toolchain by using a different executable prefix.
- A static build is self-constrained and has no dependencies on any Linux libraries. It can run on
  any Linux distribution that has a compatible CPU and Kernel version.
- The static build cannot load any shared objects due to the missing dynamic linker.
- A special static built with included dynamic linker is created if neither -fsys-dyn-linker nor -static or -shared is passed.
  Shared libraries within {arch}-linux-musl/libexec need to be shipped together with the
  final executable in the same folder in this case. The libc-{arch}.so acts as dynamic linker.
- The system dynamic linker can be chosen by passing -fsys-dyn-linker to gcc/g++ during linking.
  Verify it via readelf -p .interp my-executable. No .interp section is created in the other cases.
File System Limitations
The toolchain can only be extracted to an NTFS partition on Windows 10 or later.
This limitation exists because some Linux header files share directory locations
but differ only by case (uppercase/lowercase filenames). The included SFX archive
uses a modified 7‑Zip module to set case sensitivity in the target directory.