[openssl-users] mingw 64-bit build of 1.1.0e

Richard Levitte levitte at openssl.org
Sun Mar 12 11:58:06 UTC 2017


In message <8CD5EEA9CC3F4643AAFC6D7DDF6EB449 at OwnerPC311012> on Sun, 12 Mar 2017 16:15:47 +1100, <sisyphus1 at optusnet.com.au> said:

sisyphus1> -----Original Message----- From: Richard Levitte
sisyphus1> Sent: Sunday, March 12, 2017 3:25 PM
sisyphus1> To: openssl-users at openssl.org
sisyphus1> Subject: Re: [openssl-users] mingw 64-bit build of 1.1.0e
sisyphus1> 
sisyphus1> > Just add -m64 on the config line, like this:
sisyphus1> >
sisyphus1> > ./config no-shared zlib -m64 -IC:/_64/msys_630/1.0/local/include \
sisyphus1> > -LC:/_64/msys_630/1.0/local/lib --prefix=C:/_64/msys_630/1.0/local
sisyphus1> >
sisyphus1> > This is weird, though...  what config target did you get when
sisyphus1> > configuring? Ideally, you should have gotten 'mingw64', which already
sisyphus1> > uses the -m64 flag, so what gives?  If you show us the config output,
sisyphus1> > maybe we can help you figure out what actually goes wrong...
sisyphus1> >
sisyphus1> 
sisyphus1> Hi Richard,
sisyphus1> 
sisyphus1> The command I originally tried was
sisyphus1> ./config no-shared zlib -IC:/_64/msys_630/1.0/local/include
sisyphus1> -LC:/_64/msys_630/1.0/local/lib --prefix=C:/_64/msys_630/1.0/local
sisyphus1> 
sisyphus1> For that command, the config is in the attached conf0.txt.

Thanks for the output, that explains to me what's happening.  More
precisely, these first two lines:

    Operating system: x86_64-whatever-mingw
    Configuring for mingw

I just had a look in the script 'config', and learned that it doesn't
do anything special with 'x86_64-whatever-mingw', except using its
last part ('mingw') as the target to 'Configure'...  which seems a bit
wrong in my mind, as I would expect (like you've noticed yourself)
that 'mingw64' would be a better target specifically on 'x86_64'.  So
it seems that the 'config' script is a bit lacking, and obviously
unusable in a 64-bit mingw environment.

Time for a fix, methinks.

Cheers,
Richard

-- 
Richard Levitte         levitte at openssl.org
OpenSSL Project         http://www.openssl.org/~levitte/


More information about the openssl-users mailing list