Fwd: OpenSSL build for 64-bit Cygwin using "config" script

S. Robert Elman bob.elman at gmail.com
Wed Dec 23 14:22:41 UTC 2015


I sent the following report/fix to apache at apache.org (following the comment
in the script being patched) and got a response indicating I probably
should have sent it to rt at openssl.org.

I was attempting to do a build of OpenSSL 1.0.2e under 64-bit Cygwin.  The
attachment is a context diff for the build script 'config' that enables
such a build to succeed.

---------- Forwarded message ----------
From: S. Robert Elman <bob.elman at gmail.com>
Date: Wed, Dec 23, 2015 at 4:02 PM
Subject: OpenSSL build for 64-bit Cygwin using "config" script
To: jim at jagunet.com
Cc: apache at apache.org
​

To do a 64-bit Cygwin build of OpenSSL using the 'config' script, we need
to add an appropriate line.  Here's a context diff showing the fix as an
addition:

*** 853,856 ****
--- 853,857 ----
    mips-sony-newsos4) OUT="newsos4-gcc" ;;
    *-*-cygwin_pre1.3) OUT="Cygwin-pre1.3" ;;
+   x86_64-*-cygwin) OUT="Cygwin-x86_64" ;;
    *-*-cygwin) OUT="Cygwin" ;;
    t3e-cray-unicosmk) OUT="cray-t3e" ;;

Without this fix, it tries to do a "Cygwin", i.e., 32-bit, build in which
gcc complains that the -march=i486 option is incompatible with a 64-bit
build.  The build works fine with this one-line addition to file config.

Bob Elman
Principal Engineer
Elcadom, Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-bugs-mod/attachments/20151223/e9390547/attachment.html>
-------------- next part --------------
*** 853,856 ****
--- 853,857 ----
    mips-sony-newsos4) OUT="newsos4-gcc" ;;
    *-*-cygwin_pre1.3) OUT="Cygwin-pre1.3" ;;
+   x86_64-*-cygwin) OUT="Cygwin-x86_64" ;;
    *-*-cygwin) OUT="Cygwin" ;;
    t3e-cray-unicosmk) OUT="cray-t3e" ;;


More information about the openssl-bugs-mod mailing list