summaryrefslogtreecommitdiff
path: root/docs/backup/win32_build_on_linux_using_mingw.txt
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-07-27 23:18:35 +0000
committerChris Wilson <chris+github@qwirx.com>2006-07-27 23:18:35 +0000
commitc7662795f519d2b6797e4b1ac7fa4a22afa26310 (patch)
treeb1737dfa78d8e7bfb2d5a7e9831bab91869ade97 /docs/backup/win32_build_on_linux_using_mingw.txt
parenta85b710c46ec79e968da349304f30945cb9b7bc1 (diff)
* merge
- This is my current patch queue. I think that all of these are safe to apply. This is just under half of the pending changes in chris/general (the easy half).
Diffstat (limited to 'docs/backup/win32_build_on_linux_using_mingw.txt')
-rw-r--r--docs/backup/win32_build_on_linux_using_mingw.txt21
1 files changed, 19 insertions, 2 deletions
diff --git a/docs/backup/win32_build_on_linux_using_mingw.txt b/docs/backup/win32_build_on_linux_using_mingw.txt
index a3243a50..12261d51 100644
--- a/docs/backup/win32_build_on_linux_using_mingw.txt
+++ b/docs/backup/win32_build_on_linux_using_mingw.txt
@@ -7,6 +7,11 @@ Install the MinGW cross-compiler for Windows:
- Fedora and SuSE users can download RPM packages from
[http://mirzam.it.vu.nl/mingw/]
+You will need to know the prefix used by the cross-compiler executables.
+It will usually be something like "ix86-mingw32*-". All the binaries in the
+cross-compiler package will start with this prefix. The documentation below
+assumes that it is "i386-mingw32-". Adjust to taste.
+
Download Zlib from [http://www.zlib.net/], unpack and enter source directory:
export CC=i386-mingw32-gcc
@@ -16,7 +21,18 @@ Download Zlib from [http://www.zlib.net/], unpack and enter source directory:
make
make install prefix=/usr/local/i386-mingw32
-Download OpenSSL 0.9.7 from
+Download OpenSSL 0.9.8b from
+[http://www.openssl.org/source/openssl-0.9.8b.tar.gz]
+
+Unpack and configure:
+
+ tar xzvf openssl-0.9.8b.tar.gz
+ cd openssl-0.9.8b
+ ./Configure mingw
+ make makefile.one
+ wget http://bbdev.fluffy.co.uk/svn/box/chris/win32/support/openssl-0.9.8b-mingw-cross.patch
+ patch -p1 < openssl-0.9.8b-mingw-cross.patch
+ make -f makefile.one
Configure Box with:
@@ -27,5 +43,6 @@ Configure Box with:
export CXXFLAGS="-mthreads"
export LDFLAGS="-mthreads"
export LIBS="-lcrypto -lws2_32 -lgdi32"
+ (if you don't have a "configure" file, run "./bootstrap")
./configure --target=i386-mingw32
- make CXX="$CXX" AR="$AR" RANLIB="$RANLIB"
+ make CXX="$CXX" AR="$AR" RANLIB="$RANLIB" WINDRES="i386-mingw32-windres"