public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
To: cygwin-apps <cygwin-apps@cygwin.com>
Subject: [PATCH] setup: support i686-w64-mingw32 in bootstrap
Date: Fri, 19 Oct 2012 15:44:00 -0000	[thread overview]
Message-ID: <1350661498.3492.110.camel@YAAKOV04> (raw)

[-- Attachment #1: Type: text/plain, Size: 197 bytes --]

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 bootstrap.sh.  Patch attached.


Yaakov


[-- Attachment #2: bootstrap-mingw64.patch --]
[-- Type: text/x-patch, Size: 912 bytes --]

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

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

Index: bootstrap.sh
===================================================================
RCS file: /cvs/cygwin-apps/setup/bootstrap.sh,v
retrieving revision 2.7
diff -u -p -r2.7 bootstrap.sh
--- bootstrap.sh	13 Sep 2012 03:45:01 -0000	2.7
+++ bootstrap.sh	19 Oct 2012 15:31:06 -0000
@@ -50,14 +50,14 @@ fi
 cd "$builddir"
 
 build=`$srcdir/cfgaux/config.guess`
-host="i686-pc-mingw32"
 
-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"
 else
-	CC="gcc-3 -mno-cygwin"
-	CXX="g++-3 -mno-cygwin"
+	echo "mingw32-target g++ required for building setup"
+	exit 1
 fi
 
 echo "running configure"

             reply	other threads:[~2012-10-19 15:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-19 15:44 Yaakov (Cygwin/X) [this message]
2012-10-19 16:12 ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1350661498.3492.110.camel@YAAKOV04 \
    --to=yselkowitz@users.sourceforge.net \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).