add rpath LDFLAGS for ”Missing the OpenSSL lib“ when build python 3.10+

Simon Wei(位西朋) 2022-06-29 17:46:16 +08:00
parent 5581659500
commit c96e0f628f

@ -162,6 +162,14 @@ or, alternatively, [for Python 3.7+](https://bugs.python.org/issue32598), instea
CONFIGURE_OPTS="--with-openssl=<openssl install prefix>"
```
or
```sh
LDFLAGS="-Wl,-rpath,<openssl install prefix>/lib" \
CONFIGURE_OPTS="--with-openssl=<openssl install prefix>" \
pyenv install -v <python version>
```
E.g. (invocations that worked for various people):
* RHEL6: