Skip to content
Browse files

[OS X] Allow building with custom OpenSSL library

Fixes #13932
1 parent ad25fff commit 6090f5457d2051ab374264efa18f655fa3e15e79 @ariya committed May 25, 2016
Showing with 9 additions and 2 deletions.
  1. +9 −2 build.py
View
11 build.py
@@ -228,8 +228,15 @@ def platformQtConfigureOptions(self):
if not openssl_found:
raise RuntimeError("Could not find OpenSSL")
else:
- # TODO: Implement
- raise RuntimeError("Not implemented")
+ if os.path.exists(openssl + "/include/openssl/opensslv.h"):
+ openssl_found = True
+ openssl_include = "-I" + openssl + "/include"
+ openssl_lib = "-L" + openssl + "/lib"
+ platformOptions.extend([openssl_include, openssl_lib])
+ print("Using OpenSSL at %s" % openssl)
+
+ if not openssl_found:
+ raise RuntimeError("No OpenSSL specified: OPENSSL environment variable not found")
else:
# options specific to other Unixes, like Linux, BSD, ...
platformOptions.extend([

0 comments on commit 6090f54

Please sign in to comment.
Something went wrong with that request. Please try again.