On Sat, 27 Nov 2010, Zouzou via RT wrote:

> On 27/11/10 6:32, [email protected] via RT wrote:
> >
> > The configure settings for mingw were clearly written with compiling
> > from cygwin in mind. Perhaps the cygwin build and the MSYS builds are
> > now different enough, that what you may really be asking for is a new
> > target for mingw built under MSYS. You could give it a name such as
> > "mingw-msys" or rename the old configuration to "mingw-cygwin". That
> > way, each could be tweaked separately.
> 
> i should have been clearer; i do compile from Cygwin. but i use the 
> cross-compilers provided by Cygwin under the names i686-w64-mingw32 and 
> x86_64-w64-mingw32 (they come from the mingw-w64 project).
> the former compiles for x86, the latter for x64.
> 
> to compile for x86, i use:
>       ./Configure mingw --cross-compile-prefix=i686-w64-mingw32-
> 
> for x64, i use:
>       ./Configure mingw64 --cross-compile-prefix=x86_64-w64-mingw32-
> 
> but of course i remove the deprecated -mno-cygwin flag first. i'm not 
> sure how people are still able to use it from Cygwin; all i get if i do 
> a simple "./Configure mingw" then "make" is:
> "gcc: The -mno-cygwin flag has been removed; use a mingw-targeted 
> cross-compiler."
> then it errors out before even compiling the first object.

I think that part of the problem is that newer versions of Cygwin
don't support Windows98. My target is i386-pc-mingw32. There are no
cross-compilers on my system, so using the "--cross-compile-prefix"
option would just generate names of programs which don't exist. I am
using gcc 3.44. At what version of gcc did the -mno-cygwin flag get
removed?

So it sounds like there are at least 3 different ways to compile to
produce mingw files, under older cygwin and gcc with the -mno-cygwin
directive, under newer cygwin and gcc with the cross-compiler option
using installed cross compilers, and under MSYS. I have never installed
MSYS, so I don't know how this discussion applies there. It sounds like
we may need separate targets in Configure.

Doug


-- 
Doug Kaufman
Internet: [email protected]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to