Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
[OS X] Allow building with custom OpenSSL library
Browse files Browse the repository at this point in the history
Fixes #13932
  • Loading branch information
ariya committed May 26, 2016
1 parent ad25fff commit 6090f54
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 6090f54

Please sign in to comment.