Re: mingw 64-bit build of 1.1.0e

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

 



-----Original Message----- From: sisyphus1@xxxxxxxxxxxxxxx
Sent: Saturday, March 11, 2017 10:21 PM
To: openssl-users@xxxxxxxxxxx
Subject:  mingw 64-bit build of 1.1.0e

In the msys2 shell, I run:

./config no-shared zlib -IC:/_64/msys_630/1.0/local/include -LC:/_64/msys_630/1.0/local/lib --prefix=C:/_64/msys_630/1.0/local && make && make test && make install

Works beautifully ... except that libssl.a and libcrypto.a turn out to be 32-bit builds !! That is, the built library works fine with the same vendor's 32-bit compiler (gcc version 6.3.0 (i686-posix-sjlj-rev1, Built by MinGW-W64 project)), but the x64 compiler that built the damned things regards them as incompatible.

I'm thinking that I just need to specify an -m64 switch in there. How do I do that ?

After another couple of hours fossicking about, I did it by firstly setting the CC environment variable to 'gcc -m64'. (I would normally do that by specifying 'CC="gcc -m64"' as part of the ./config command, but ./config found that to be objectionable, so I pre-set it in a separate command prior to running ./config.)
And I added '-m64' as a ./config arg.

I don't know if *both* of those steps were necessary, but it did the trick.

Disconcertingly, the summary at the end of ./config still announces "THIRTY_TWO_BIT mode" but, at the end of the build, I definitely have the X64 libraries that I wanted.

Cheers,
Rob
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



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

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux