This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] setup: support i686-w64-mingw32 in bootstrap

Now that setup.exe prerequisites are in the distro for i686-w64-mingw32,
this can replace the decrepit gcc3 -mno-cygwin as an equally valid
alternative for  Patch attached.


2012-10-19  Yaakov Selkowitz  <yselkowitz@...>

	* Add support for i686-w64-mingw32 toolchain.
	Remove support for gcc-3 -mno-cygwin.

RCS file: /cvs/cygwin-apps/setup/,v
retrieving revision 2.7
diff -u -p -r2.7
---	13 Sep 2012 03:45:01 -0000	2.7
+++	19 Oct 2012 15:31:06 -0000
@@ -50,14 +50,14 @@ fi
 cd "$builddir"
-if hash $host-g++ 2> /dev/null; then
-	CC="$host-gcc"
-	CXX="$host-g++"
+if hash i686-w64-mingw32-g++ 2> /dev/null; then
+	host="i686-w64-mingw32"
+elif hash i686-pc-mingw32-g++ 2> /dev/null; then
+	host="i686-pc-mingw32"
-	CC="gcc-3 -mno-cygwin"
-	CXX="g++-3 -mno-cygwin"
+	echo "mingw32-target g++ required for building setup"
+	exit 1
 echo "running configure"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]