Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
bpo-21622: ctypes.util find_library walk LD_LIBRARY_PATH #10460
Originally, issue was open for case where SONAME wasn't part of binary.
Updates to the posix case did include LD_LIBRARY_PATH, but reliance on gcc and ldconfig behavior breaks in some cases. e.g. musl on alpine builds
This provides a find method that walks the LD_LIBRARY_PATH, checks for ELF bytes, and returns the name when found or None, matching the other behavior.
This runs after all prior cases fail, does not rely on SONAME entry, gcc or ldconfig -p behavior.
Hello, and thanks for your contribution!
I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).
Our records indicate we have not received your CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.
If you have recently signed the CLA, please wait at least one business day
You can check yourself to see if the CLA has been received.
Thanks again for your contribution, we look forward to reviewing it!