From 2abd055ad095556edf8a3975d26e476665e02d5b Mon Sep 17 00:00:00 2001 From: zstbsqx Date: Tue, 24 Sep 2024 02:51:10 +0800 Subject: [PATCH] For python >= 3.10, add `--with-openssl-rpath` flag --- Common-build-problems.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Common-build-problems.md b/Common-build-problems.md index c3228a2..ff16bab 100644 --- a/Common-build-problems.md +++ b/Common-build-problems.md @@ -226,6 +226,14 @@ CONFIGURE_OPTS="--with-openssl=" \ pyenv install -v ``` +For python >= 3.10, add `--with-openssl-rpath` flag + +``` +LDFLAGS="-Wl,-rpath,/lib" \ +CONFIGURE_OPTS="--with-openssl= --with-openssl-rpath=auto" \ +pyenv install -v +``` + E.g. (invocations that worked for various people): * RHEL6: