:: commit 88dc101c67b6abfbf6d9dc5a0c74d75da79a3925

Kamila Szewczyk <kspalaiologos@gmail.com> — 2022-05-09 15:05

parents: 304f5d84a5

update porting.md

diff --git a/PORTING.md b/PORTING.md
index cf20de7..2757d24 100644
--- a/PORTING.md
+++ b/PORTING.md
@@ -1,7 +1,13 @@
 
 ## Windows
 
-Porting to Windows shouldn't be hard when using Cygwin. Make sure to install `gcc` (because `clang` seems to work poorly on Cygwin), update the Makefile to use `gcc` and update the `CFLAGS` variable - remove `-g3` and `-fPIC`, add `-D_WIN32`. Replace `.so` with `.dll` in the shared library name.
+Crosscompiling to Windows is supported:
+
+```bash
+CC=i686-w64-mingw32-gcc make
+# or
+CC=x86_64-w64-mingw32-gcc make
+```
 
 ## M1 MacOS
 
tab: 248 wrap: offon