[PATCH 0/5] libssh2: Enable cross-compilation from Linux to Windows using MinGW

Richard W.M. Jones rjones at redhat.com
Mon Nov 10 15:12:40 UTC 2008


These five patches enable libssh2 to be cross-compiled from a Fedora
Linux system to Windows using Fedora's new MinGW cross-compiler:

https://fedoraproject.org/wiki/MinGW

After applying these patches, you can cross-compile from a Fedora
system using:

  autoreconf
  mingw32-configure --enable-shared
  make

and you will end up with libssh2-1.dll and assorted Windows
executables in the example/simple directory, which you can test using
Wine or Windows.

I tested the example programs using Wine and an OpenSSH sshd and they
appeared to work fine.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my OCaml programming blog: http://camltastic.blogspot.com/
Fedora now supports 68 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora



More information about the mingw mailing list