summaryrefslogtreecommitdiff
path: root/docs/api-notes/win32_build_on_cygwin_using_mingw.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/api-notes/win32_build_on_cygwin_using_mingw.txt')
-rw-r--r--docs/api-notes/win32_build_on_cygwin_using_mingw.txt40
1 files changed, 18 insertions, 22 deletions
diff --git a/docs/api-notes/win32_build_on_cygwin_using_mingw.txt b/docs/api-notes/win32_build_on_cygwin_using_mingw.txt
index 34dbac0b..5b413cd3 100644
--- a/docs/api-notes/win32_build_on_cygwin_using_mingw.txt
+++ b/docs/api-notes/win32_build_on_cygwin_using_mingw.txt
@@ -11,14 +11,14 @@ Start by installing Cygwin on your Windows machine from [http://www.cygwin.org/c
Make sure to select the following packages during installation:
* Archive/unzip
- * Devel/automake
* Devel/autoconf
- * Devel/gcc-mingw
- * Devel/gcc-mingw-g++
+ * Devel/automake
* Devel/make
+ * Devel/mingw64-x86_64-gcc
+ * Devel/mingw64-x86_64-gcc-g++
+ * Devel/mingw64-x86_64-zlib
* Libs/libxml2
* Libs/libxslt (for xsltproc)
- * Mingw/mingw-zlib-devel
* Perl/Perl
If you already have Cygwin installed, please re-run the installer and
@@ -45,16 +45,16 @@ your user's home directory in /etc/passwd to match.
== OpenSSL ==
-Download OpenSSL from [http://www.openssl.org/source/openssl-1.0.0e.tar.gz]
+Download OpenSSL from [http://www.openssl.org/source/openssl-1.0.1f.tar.gz]
Open a Cygwin shell, go to the base directory, and unpack OpenSSL:
- tar xzvf openssl-1.0.0e.tar.gz
+ tar xzvf openssl-1.0.1f.tar.gz
Configure OpenSSL for MinGW compilation, and build and install it:
- cd openssl-1.0.0e
- ./Configure --prefix=/usr/i686-pc-mingw32/ mingw
+ cd openssl-1.0.1f
+ ./Configure --prefix=/usr/x86_64-w64-mingw32 mingw64 --cross-compile-prefix=x86_64-w64-mingw32-
make
make install_sw
@@ -63,17 +63,15 @@ Configure OpenSSL for MinGW compilation, and build and install it:
This step is only required to support regular expressions in including/excluding files from backups. However, this is a very useful feature.
Download PCRE from
-[http://prdownloads.sourceforge.net/pcre/pcre-8.12.tar.bz2?download].
+[http://prdownloads.sourceforge.net/pcre/pcre-8.34.tar.bz2?download].
Open a Cygwin shell, go to the base directory, and unpack, build and
install PCRE:
- tar xjvf pcre-8.12.tar.bz2
- cd pcre-8.12
- export CFLAGS="-mno-cygwin"
- export CXXFLAGS="-mno-cygwin"
- ./configure --prefix=/usr/i686-pc-mingw32 --disable-shared
- make
+ tar xjvf pcre-8.34.tar.bz2
+ cd pcre-8.34
+ ./configure --prefix=/usr/x86_64-w64-mingw32 --disable-shared --host=x86_64-w64-mingw32
+ make
make install
Note: we must disable shared libraries on Windows because otherwise
@@ -97,7 +95,7 @@ unpack it, compile and install it:
tar xzvf PDCurses-3.4.tar.gz
cd PDCurses-3.4/win32
make -f gccwin32.mak CC="gcc -mno-cygwin" LINK="gcc -mno-cygwin"
- cp pdcurses.a /usr/i686-pc-mingw32/lib/libpdcurses.a
+ cp pdcurses.a /usr/x86_64-w64-mingw32/lib/libpdcurses.a
Download Readline version 6.2 from
[ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz], and unpack
@@ -105,12 +103,10 @@ and install it thus:
tar xzvf readline-6.2.tar.gz
cd readline-6.2
- ./configure --prefix=/usr/i686-pc-mingw32 \
- CFLAGS="-mno-cygwin" \
- CPPFLAGS="-mno-cygwin" \
- LDFLAGS="-mno-cygwin" \
- LIBS="-lpdcurses" \
- --with-curses --disable-shared
+ ./configure --prefix=/usr/x86_64-w64-mingw32 \
+ --host=x86_64-w64-mingw32 \
+ LIBS="-lpdcurses" --with-curses --disable-shared \
+ CFLAGS="-DSIGHUP=0 -DSIGQUIT=0 -DS_ISUID=0 -DS_ISGID=0 -DS_IXGRP=0 -DS_IXOTH=0 -DS_IWOTH=0"
make
make install