1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-12-12 12:17:47 +03:00

[OS X] Allow building with custom OpenSSL library

Fixes #13932
This commit is contained in:
Ariya Hidayat 2016-05-25 21:14:36 -07:00
parent ad25fff054
commit 6090f5457d

View File

@ -228,8 +228,15 @@ class PhantomJSBuilder(object):
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([