diff options
author | Tobias Markmann <tm@ayena.de> | 2016-01-15 09:26:21 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2016-01-15 09:37:10 (GMT) |
commit | a85e554093966d7174218a17e45cf8e8b6efadca (patch) | |
tree | 616bbacdb0545eab9919604cc9912ab2a19e4c0d /BuildTools | |
parent | 13801557b6664426cac26384441ab0b19ff9abb5 (diff) | |
download | swift-a85e554093966d7174218a17e45cf8e8b6efadca.zip swift-a85e554093966d7174218a17e45cf8e8b6efadca.tar.bz2 |
Always link secur32.lib to Swiften on Windows
Even when using the OpenSSL TLS backend for Swiften secur32.lib is required by
Swiften/SASL/WindowsAuthentication.
This also adds additional flags needed to build a bundled OpenSSL on Windows.
Test-Information:
Tested on Windows 8 with VS 2013.
Change-Id: I51da79cfa7931c07c8da3f0c5d941a637ac26d0c
Diffstat (limited to 'BuildTools')
-rw-r--r-- | BuildTools/SCons/SConstruct | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct index 3fd093b..81b78a7 100644 --- a/BuildTools/SCons/SConstruct +++ b/BuildTools/SCons/SConstruct @@ -557,12 +557,15 @@ elif not env["HAVE_SECURETRANSPORT"] : else : env["OPENSSL_FLAGS"] = {} if env["PLATFORM"] == "win32" : - env["HAVE_SCHANNEL"] = True # If we're compiling for Windows and OpenSSL isn't being used, use Schannel - env.Append(LIBS = ["secur32"]) + env["HAVE_SCHANNEL"] = True openssl_conf.Finish() +if env["PLATFORM"] == "win32" : + # On Windows link to secur32. It is needed by Swiften/SASL/WindowsAuthentication + env.Append(LIBS = ["secur32"]) + #Hunspell hunspell_env = conf_env.Clone() hunspell_prefix = isinstance(env.get("hunspell", False), str) and env["hunspell"] or "" |