Import 2017-06-07 23:51:09: master ff47977d

Author Committer Branch Timestamp Parent
jcfr jcfr master 2014-08-05 22:43:36 master 7dc79124
Changeset

COMP: Add support for building on windows using Qt 4.8.6 and OpenSSL 1.0.1h

For more details see inlined comment. Also copied below for convenience:

8<----8<----8<----8<----8<----8<----8<----8<----8<----

Starting with Qt 4.8.6, we compiled [1] OpenSSL binaries specifically for each

version of Microsoft Visual Studio. To understand the motivation, read below.

#

As explained in [2][3], if a library meets these two conditions:

(a) exposes a pure C interface

(b) is linked against static version of the CRT

the version of the compiler and runtime used to build the library

shouldn't matter.

#

That said, since OpenSSL is built as a shared library using the '/MD' [4]

flag, it is not possible to use the same library with different runtime

libraries.

#

We found out that '/MD' was used by inspecting the the file 'ms/ntdll.mak'

generated atfer configuring OpenSSL.

#

If you find mistake in this explanation, do not hesitate to submit a patch

to fix this text. Thanks.

#

[1] Script used to compile OpenSSL: https://gist.github.com/jcfr/6030240

[2] http://siomsystems.com/mixing-visual-studio-versions/

[3] http://bytes.com/topic/net/answers/505515-compile-different-versions-visual-studio

[4] http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx

8<----8<----8<----8<----8<----8<----8<----8<----8<----

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23552 3bd1e089-480b-0410-8dfb-8563597acbee

mod - SuperBuild/External_OpenSSL.cmake Diff File