From: Ken Brown <kbrown@cornell.edu>
To: "sds@gnu.org" <sds@gnu.org>
Cc: Eli Zaretskii <eliz@gnu.org>,
"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: cannot build bzr tip on mingw
Date: Wed, 04 May 2011 17:30:17 -0400 [thread overview]
Message-ID: <4DC1C569.1050001@cornell.edu> (raw)
In-Reply-To: <4DBF6CC4.8080201@cornell.edu>
On 5/2/2011 10:47 PM, Ken Brown wrote:
> On 5/2/2011 6:21 PM, Sam Steingold wrote:
>>> * Ken Brown<xoebja@pbearyy.rqh> [2011-05-02 18:08:55 -0400]:
>>>
>>> On 5/2/2011 5:13 PM, Sam Steingold wrote:
>>>> On Mon, May 2, 2011 at 4:31 PM, Eli Zaretskii<eliz@gnu.org> wrote:
>>>>> But yes, you can use GCC 4, modulo the caveats in etc/PROBLEMS.
>>>> how, given that it no longer supports -mno-cygwin?
>>>
>>> The -mno-cygwin option is being phased out in favor of a genuine
>>> cygwin-mingw cross compiler.
>>
>> I have seen this phrase, but I don't know what a "genuine cross compiler" is.
>>
>> Specifically, what is the magic incantation which I should use instead
>> of "gcc -mno-cygwin" at the command line to produce a non-cygwin (pure
>> native woe32/64) executable?
>>
>> Next, what is the magic incantation which I should use instead of
>> ./configure.bat --no-debug --with-gcc --cflags -IC:/gnu/gnuwin32/include --ldflags -LC:/gnu/gnuwin32/lib --without-xpm
>> to configure emacs to use this "genuine cross compiler"?
>>
>> Penultimately, DIUC that with an autoconf-generated configure script the
>> right way to configure a package to be cross-built is
>> ./configure --build arch-vendor-os
>>
>> Finally, will this produce a valid windows (XP 64-bit) emacs on linux:
>> ./configure --build x86_64-w64-mingw32
>
> I'm sorry, but I really don't anything about cross compilers. I was
> simply passing on the information that (in principle) it should be
> possible to use the new cross compiler instead of 'gcc -mno-cygwin' to
> produce a native windows executable. Others on the list (Angelo?) might
> be able to give you details.
>
> I can tell you that the cross compiler (for 32-bit windows) is called
> i686-pc-mingw32-gcc.exe and is in the Cygwin package mingw-gcc-core,
> which can be installed by following the instructions in the link I sent
> you. There's is also a cross compiler for 64-bit windows, which has
> been available for some time now, in the package mingw64-x86_64-gcc-core.
I just played around with the cross compiler a little. It appears that
you can simply use "i686-pc-mingw32-gcc" as a replacement for "gcc
-mno-cygwin". At least it worked for me on a simple C program.
next prev parent reply other threads:[~2011-05-04 21:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-02 19:47 cannot build bzr tip on mingw Sam Steingold
2011-05-02 20:31 ` Eli Zaretskii
2011-05-02 20:40 ` Eli Zaretskii
2011-05-02 21:13 ` Sam Steingold
2011-05-02 22:08 ` Ken Brown
2011-05-02 22:21 ` Sam Steingold
2011-05-03 2:47 ` Ken Brown
2011-05-04 21:30 ` Ken Brown [this message]
2011-05-03 0:15 ` Jason Rumney
2011-05-03 3:00 ` Eli Zaretskii
2011-05-03 11:16 ` Ken Brown
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=4DC1C569.1050001@cornell.edu \
--to=kbrown@cornell.edu \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=sds@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.