summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-09 17:20:16 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-09 17:20:16 (GMT)
commitf4d1b6494d5c537ba4a086d61ea86b1dd6843e4b (patch)
tree2a673ed72d271dfaa7cc973c886c03b45881955a /Swiften/TLS/SConscript
parent8774d67aabd02086ec0663bb4567cef14bd513c6 (diff)
downloadswift-f4d1b6494d5c537ba4a086d61ea86b1dd6843e4b.zip
swift-f4d1b6494d5c537ba4a086d61ea86b1dd6843e4b.tar.bz2
Fixed windows compilation.
Diffstat (limited to 'Swiften/TLS/SConscript')
-rw-r--r--Swiften/TLS/SConscript10
1 files changed, 4 insertions, 6 deletions
diff --git a/Swiften/TLS/SConscript b/Swiften/TLS/SConscript
index bb33239..7408e72 100644
--- a/Swiften/TLS/SConscript
+++ b/Swiften/TLS/SConscript
@@ -7,16 +7,14 @@ objects = swiften_env.StaticObject([
"TLSContextFactory.cpp",
])
-if swiften_env.get("HAVE_OPENSSL", 0) :
- objects += swiften_env.StaticObject([
+myenv = swiften_env.Clone()
+if myenv.get("HAVE_OPENSSL", 0) :
+ myenv.MergeFlags(myenv["OPENSSL_FLAGS"])
+ objects += myenv.StaticObject([
"OpenSSL/OpenSSLContext.cpp",
"OpenSSL/OpenSSLCertificate.cpp",
"OpenSSL/OpenSSLContextFactory.cpp",
])
-
-myenv = swiften_env.Clone()
-if myenv.get("HAVE_OPENSSL", 0) :
- myenv.MergeFlags("OPENSSL_FLAGS")
myenv.Append(CPPDEFINES = "HAVE_OPENSSL")
objects += myenv.StaticObject(["PlatformTLSContextFactory.cpp"])