add CROSS_CC CROSS_PKGCONFIG CROSS_SDLCONFIG for Mingw32 Cross compilation

This commit is contained in:
Thomas Bernard
2018-02-06 22:21:56 +01:00
parent 6a6f9372ba
commit b70d49349a
2 changed files with 15 additions and 6 deletions

View File

@@ -96,8 +96,10 @@ This will only work on an UNIXsystem (Linux or FreeBSD).
== Windows ==
It is also possible to compile from linux, with this command :
make WIN32CROSS=1
$ make WIN32CROSS=1
You will need the mingw cross-compiler, and all the librairies listed above.
Variables CROSS_CC, CROSS_PKGCONFIG and CROSS_SDLCONFIG can be set :
$ CROSS_CC=mingw32-gcc CROSS_PKGCONFIG=mingw32-pkg-config CROSS_SDLCONFIG=/path/to/ming32/sdl-config WIN32CROSS=1 NOTTF=1 make
Here is a list of the resources used to build the Windows version: