使用 Linux 主机以 Cygwin 为目标的交叉编译

Cross-compilation targeting Cygwin with Linux host

是否可以从 Linux/Unix 主机交叉编译针对 Cygwin 环境的程序?我主要试图避免使用 Windows WM 来构建程序集合。

来自the website

Cygwin is not:

  • a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.

mingw-w64 is not enough, I need a full POSIX platform. I'm also wondering if it's possible to target MSYS2.

可能是我理解不正确,不需要编译inCygwin,只需要mingw-w64即可。

谢谢!

可以从 Linux.
编译 Cygwin cygwin1.dll本身就是这样构建的。

Packages/libraries 可在:

https://copr.fedorainfracloud.org/coprs/yselkowitz/cygwin/

当然只有最小的一组 tools/libraries 可用