Skip to content

gh-157755: Fix library order in OpenSSL configure checks - #157756

Open
miyanyan wants to merge 1 commit into
python:mainfrom
miyanyan:fix-openssl-probe-link-order
Open

miyanyan wants to merge 1 commit into
python:mainfrom
miyanyan:fix-openssl-probe-link-order

Conversation

@miyanyan

@miyanyan miyanyan commented Sep 18, 2026

Copy link
Copy Markdown

Fixes #157755.

The OpenSSL API checks put LIBS before OPENSSL_LIBS and LIBCRYPTO_LIBS. With static OpenSSL, this can place its dependencies before the libraries that reference them and incorrectly mark _ssl and _hashlib as missing.

Place the OpenSSL libraries before LIBS, matching the existing AX_CHECK_OPENSSL check. Regenerate configure with Autoconf 2.72 and add a NEWS entry.

For example, with zlib-enabled static OpenSSL and libz.a supplied through LIBS, the initial OpenSSL link check succeeds but both API checks fail with unresolved zlib symbols. Both checks pass after this change with identical configure arguments. Reproduction details are in the linked issue.

@python-cla-bot

python-cla-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenSSL configure API checks use the wrong library order for dependencies in LIBS

1 participant