summaryrefslogtreecommitdiff
path: root/docs/backup/win32_build_on_cygwin_using_mingw.txt
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2005-12-12 20:50:00 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2005-12-12 20:50:00 +0000
commit3bedf8846f4d7a5cb38276b274662d62a36dcd52 (patch)
tree9d51de8b0f3d06ba6549a5a1958e52f592343140 /docs/backup/win32_build_on_cygwin_using_mingw.txt
parent81d8eda2419e7a23088a98cdfc52a305c9ceac0d (diff)
Marged chris/win32/merge/07-win32-fixes at r210 to trunk
Diffstat (limited to 'docs/backup/win32_build_on_cygwin_using_mingw.txt')
-rwxr-xr-xdocs/backup/win32_build_on_cygwin_using_mingw.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/backup/win32_build_on_cygwin_using_mingw.txt b/docs/backup/win32_build_on_cygwin_using_mingw.txt
new file mode 100755
index 00000000..c0e68447
--- /dev/null
+++ b/docs/backup/win32_build_on_cygwin_using_mingw.txt
@@ -0,0 +1,37 @@
+How to build Box Backup on Win32 using Cygwin and MinGW
+By Chris Wilson, 2005-12-07
+
+Install Cygwin on your Windows box [http://www.cygwin.org]
+Make sure to include the following packages:
+* Devel/gcc-mingw
+* Devel/gcc-mingw-core
+* Devel/gcc-mingw-g++
+* Mingw/mingw-zlib
+
+Download OpenSSL from
+[http://www.openssl.org/source/openssl-0.9.7i.tar.gz]
+
+Open a Cygwin shell, and unpack OpenSSL:
+
+ tar xzvf openssl-0.9.7i.tar.gz
+
+Configure OpenSSL for MinGW compilation, and build and install it:
+
+ cd openssl-0.9.7i
+ ./Configure --prefix=/usr/i686-pc-mingw32/ mingw
+ make
+ make install
+
+Now unpack the Box Backup sources, enter the source directory,
+and configure like this:
+
+ export CXX="g++ -mno-cygwin"
+ export LD="g++ -mno-cygwin"
+ export CFLAGS="-mno-cygwin -mthreads"
+ export CXXFLAGS="-mno-cygwin -mthreads"
+ export LDFLAGS="-mno-cygwin -mthreads"
+ export LIBS="-lcrypto -lws2_32 -lgdi32"
+ (if you don't have a "configure" file, run "./bootstrap")
+ ./configure --target=i686-pc-mingw32
+ make
+