mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-43466: Add --with-openssl-rpath configure option (GH-24820)
This commit is contained in:
parent
ff8c77fe96
commit
32eba61ea4
9 changed files with 5247 additions and 7337 deletions
24
configure.ac
24
configure.ac
|
@ -5808,6 +5808,30 @@ if test "$have_openssl" = yes; then
|
|||
LIBS="$save_LIBS"
|
||||
fi
|
||||
|
||||
# rpath to libssl and libcrypto
|
||||
AC_MSG_CHECKING(for --with-openssl-rpath)
|
||||
AC_ARG_WITH(openssl-rpath,
|
||||
AS_HELP_STRING([--with-openssl-rpath=@<:@DIR|auto|no@:>@],
|
||||
[Set runtime library directory (rpath) for OpenSSL libraries,
|
||||
no (default): don't set rpath,
|
||||
auto: auto-detect rpath from --with-openssl and pkg-config,
|
||||
DIR: set an explicit rpath
|
||||
]),
|
||||
[],
|
||||
[with_openssl_rpath=no]
|
||||
)
|
||||
AS_CASE($with_openssl_rpath,
|
||||
[auto|yes],[OPENSSL_RPATH=auto],
|
||||
[no],[OPENSSL_RPATH=],
|
||||
[AS_IF(
|
||||
[test -d "$with_openssl_rpath"],
|
||||
[OPENSSL_RPATH="$with_openssl_rpath"],
|
||||
AC_MSG_ERROR([--with-openssl-rpath "$with_openssl_rpath" is not a directory]))
|
||||
]
|
||||
)
|
||||
AC_MSG_RESULT($OPENSSL_RPATH)
|
||||
AC_SUBST([OPENSSL_RPATH])
|
||||
|
||||
# ssl module default cipher suite string
|
||||
AH_TEMPLATE(PY_SSL_DEFAULT_CIPHERS,
|
||||
[Default cipher suites list for ssl module.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue