Skip to content

Commit

Permalink
update porting.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos committed May 9, 2022
1 parent 304f5d8 commit 88dc101
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion PORTING.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 88dc101

Please sign in to comment.