Last active
April 23, 2019 00:32
-
-
Save DavidPu/f0815e44a56ddb28ce4aa751b49b1009 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Modules/Setup.dist b/Modules/Setup | |
| index e469d5e..3fea7df 100644 | |
| --- a/Modules/Setup | |
| +++ b/Modules/Setup | |
| @@ -387,3 +387,12 @@ _symtable symtablemodule.c | |
| # Another example -- the 'xxsubtype' module shows C-level subtyping in action | |
| xxsubtype xxsubtype.c | |
| + | |
| +SSL=$(srcdir)/openssl | |
| +_ssl _ssl.c \ | |
| + -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ | |
| + -L$(SSL)/lib -Wl,-Bsymbolic $(SSL)/lib/libssl.a $(SSL)/lib/libcrypto.a | |
| + | |
| +_hashlib _hashopenssl.c \ | |
| + -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ | |
| + -L$(SSL)/lib -Wl,-Bsymbolic $(SSL)/lib/libssl.a $(SSL)/lib/libcrypto.a | |
| diff --git a/configure b/configure | |
| index e39c16e..bf3200a 100755 | |
| --- a/configure | |
| +++ b/configure | |
| @@ -18337,3 +18337,11 @@ if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | |
| echo "" >&6 | |
| fi | |
| +SCRIPT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" | |
| +if [[ ! -f "${SCRIPT_DIR}/openssl-1.1.1b.tar.gz" ]]; then | |
| + wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz | |
| + tar xpf openssl-1.1.1b.tar.gz | |
| +fi | |
| +cd openssl-1.1.1b | |
| +./config --prefix=${SCRIPT_DIR}/openssl --openssldir=${SCRIPT_DIR}/openssl | |
| +make && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment