[Box Backup-commit] COMMIT r3553 - box/trunk/docs/api-notes

subversion at boxbackup.org subversion at boxbackup.org
Wed Apr 15 23:02:55 BST 2015


Author: chris
Date: 2015-04-15 22:02:54 +0000 (Wed, 15 Apr 2015)
New Revision: 3553

Modified:
   box/trunk/docs/api-notes/win32_build_on_cygwin_using_mingw.txt
Log:
Update compilation instructions for Windows.

Modified: box/trunk/docs/api-notes/win32_build_on_cygwin_using_mingw.txt
===================================================================
--- box/trunk/docs/api-notes/win32_build_on_cygwin_using_mingw.txt	2015-04-15 21:50:52 UTC (rev 3552)
+++ box/trunk/docs/api-notes/win32_build_on_cygwin_using_mingw.txt	2015-04-15 22:02:54 UTC (rev 3553)
@@ -11,14 +11,14 @@
 Make sure to select the following packages during installation:
 
  * Archive/unzip
+ * Devel/autoconf
  * Devel/automake
- * Devel/autoconf
+ * Devel/make
  * Devel/mingw64-x86_64-gcc
  * Devel/mingw64-x86_64-gcc-g++
- * Devel/make
+ * Devel/mingw64-x86_64-zlib
  * Libs/libxml2
  * Libs/libxslt (for xsltproc)
- * Devel/mingw64-x86_64-zlib
  * Perl/Perl
 
 If you already have Cygwin installed, please re-run the installer and
@@ -70,8 +70,8 @@
 
 	tar xjvf pcre-8.34.tar.bz2
 	cd pcre-8.34
-	./configure --prefix=/usr/x86_64-w64-mingw32 --disable-shared --target=x86_64-w64-mingw32
-	make 
+	./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
@@ -95,7 +95,7 @@
 	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
@@ -103,12 +103,10 @@
 
 	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
 




More information about the Boxbackup-commit mailing list