Adding a bit of documentation for MinGW that was left off the previous SVN commit
authorJohn F. Fay <johnffay@nettally.com>
Sun, 5 Feb 2012 19:36:27 +0000 (19:36 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Sun, 5 Feb 2012 19:36:27 +0000 (19:36 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1071 7f0cb862-5218-0410-a997-914c9d46530a

README.mingw_cross [new file with mode: 0644]

diff --git a/README.mingw_cross b/README.mingw_cross
new file mode 100644 (file)
index 0000000..63eb435
--- /dev/null
@@ -0,0 +1,24 @@
+Cross-compilation from GNU/Linux (static and shared DLL)\r
+========================================================\r
+\r
+Install MinGW32 and prepare FreeGLUT on Debian/Ubuntu:\r
+\r
+  apt-get install mingw32\r
+  ./configure --host=i586-mingw32msvc --prefix=/freeglut\r
+\r
+Install MinGW32 and prepare FreeGLUT on Fedora:\r
+\r
+  yum install mingw32-gcc\r
+  ./configure --host=i686-pc-mingw32 --prefix=/freeglut\r
+\r
+Cross-compile!\r
+\r
+  make\r
+  make install DESTDIR=$(pwd)\r
+\r
+Everything is in the new freeglut/ directory.\r
+The .dll is in the freeglut/bin/.\r
+\r
+\r
+Compilation of your own programs is done as usual.\r
+See README.cygwin_mingw for details.\r