[openssl-users] Building on Windows against run-time library

Wei Sun wei.sun at consumersoft.com
Tue Sep 27 18:49:53 UTC 2016

 I'm new to the openssl build system and I'm sure there is some script I 
could change/add for different linking behaviors.
 It seems it uses /MD to build shared library and /MT to build static 
library for 1.1.0b. And I was able to edit generated makefile to change 
run-time dependency, it's not optimal solution, but it would be easiest one 
for our case for now.
 -------- Original Message --------
- From: "Michael Wojcik" <Michael.Wojcik at microfocus.com>
- Sent: Tuesday, September 27, 2016 6:08 AM
- To: "openssl-users at openssl.org" <openssl-users at openssl.org>
- Subject: Re: [openssl-users] Building on Windows against run-time 
- > From: openssl-users [mailto:openssl-users-bounces at openssl.org] On 
- > Of Wei Sun
- > Sent: Monday, September 26, 2016 19:06
- >
- > Just joined the list, and apologize if the following question was 
- > before.
- >
- > I'm building openssl 1.1.0b on Windows. It is stated that it defaults 
- > /MD while building openssl, so is there a way to change the linker 
- > to /MT?
- We're still using 1.0.2, so I don't know if the 1.1.0 build system is 
significantly different; but we use a build script of our own which edits 
the Perl build scripts (using Cygwin sed) after extracting the tarball and 
before running the OpenSSL build process. One of the things it does is 
force the C RTS linker switches we want.
- I don't know of a cleaner way to handle this particular aspect of build 
configuration. It's been some years since I looked into it, though.
- It's not an issue for us because our build scripts do a bunch of other 
things (as part of our integration process) besides extracting the sources 
and building OpenSSL, so adding this step wasn't burdensome.
- Michael Wojcik
- Distinguished Engineer, Micro Focus
- --
- openssl-users mailing list
- To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

More information about the openssl-users mailing list