[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support for MinGW compilers in the Cygwin environment

From: Daniel Richard G.
Subject: Re: Support for MinGW compilers in the Cygwin environment
Date: Fri, 25 Oct 2013 03:23:31 -0400

On Thu, 2013 Oct 24 8:59-0400, Earnie Boyd wrote:
> Daniel, you can have configure use i686-pc-mingw32 or any other host
> triplet by specifying it in your environment rather than on the
> command line.  Then config.guess doesn't have to guess.
> export ac_cv_host=i686-pc-mingw32 ./configure

(I thought host_alias was the "official" variable to use there, along
with {build,target}_alias)

You can set the triplet explicitly, but the whole purpose of
config.guess is to save you the trouble. Given that the script already
does the right thing on e.g. Solaris if it notices CC with 64-bit flags,
do you see a way that it can similarly get things right if CC is set to
the MinGW compiler on Cygwin?

(I recognize that the MinGW compiler now takes the form of a cross-
compiler, and that's great, but whether or not Autotools uses it as
a cross compiler is independent of that. After all, if you had an
old-style package with a standalone makefile, and you wanted to
build using the MinGW compiler, you'd have to set CC/CXX/CFLAGS in a
non-cross-ish way.)

> The same is true for build as well.  If host == build then it is
> considered native else it is considered a cross compile.

So far, it seems that building with host==build==i686-pc-mingw32 on
Cygwin breaks only because of that "cmd //c" thing in Libtool.


Daniel Richard G. || address@hidden
My ASCII-art .sig got a bad case of Times New Roman.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]