Marc Wäckerlin via RT wrote:
Hi OpenSSL

I managed to Cross Compile OpenSSL on Linux so that I can develop OpenSSL 
applications that run on Windows entireliy inside a Linux build environment.

It even builds the executables and the DLLs on Linux.

Please add my changes to the official "Configure" script. The patch is in the 
attachment.

Remark after some testing: As far as I see, the change in the MinGW target (below "2. Change 
Link Arguments") is no more necessary in OpenSSL 1.0.0d. Just remove the "die"-Line 
and everything is fine. :-)

Full documentation and Details of the patch are on my Homepage: 
http://marc.waeckerlin.org/computer/blog/openssl_fuer_windows_mingw_unter_linux_crosscomilieren

 From the Homepage:
-------------------------------------------------------------------------------------
Details of the Patch

1. Remove "die"-Line

Without the patch, you first drop into the error message:

./config --cross-compile-prefix=i586-mingw32msvc- --prefix=/tmp/openssl shared 
mingw
Operating system: x86_64-whatever-linux2
Configuring for linux-x86_64
target already defined - linux-x86_64 (offending arg: mingw)

That's why the die-line is commented out.
Instead ./config I use ./Configure
2. Change Link Arguments

According to http://wagner.pp.ru/~vitus/articles/openssl-mingw.html, symbols 
are not exported by default, that's why there is need for adding 
-Wl,–export-all -shared.
Hmm, this is not true and the this build use util/libeay.num and util/ssleay.num to export symbols. May be those files are not up to date . Backup them, try make util/libeay.num && make util/ssleay.num after ./Configure and compare with saved.


-------------------------------------------------------------------------------------

Thanks, Regards
Marc

Regards,
Roumen

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

Reply via email to