8000 gh-127604: Optimize -ldl usage on platforms that use dlopen for libFFI. by freakboy3742 · Pull Request #133081 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-127604: Optimize -ldl usage on platforms that use dlopen for libFFI 8000 . #133081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Optimize -ldl usage on platforms that use dlopen for libFFI.
  • Loading branch information
freakboy3742 committed Apr 28, 2025
commit 297f242047eeea65a98eb26a3f3b212c438dce9c
12 changes: 11 additions & 1 deletion configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4045,7 +4045,11 @@ AS_VAR_IF([have_libffi], [yes], [
AC_SUBST([MODULE__CTYPES_MALLOC_CLOSURE])

dnl HAVE_LIBDL: for dlopen, see gh-76828
AS_VAR_IF([ac_cv_lib_dl_dlopen], [yes], [AS_VAR_APPEND([LIBFFI_LIBS], [" -ldl"])])
AS_VAR_IF([ac_cv_lib_dl_dlopen], [yes], [
AS_VAR_IF([ac_cv_require_ldl], [yes], [], [
AS_VAR_APPEND([LIBFFI_LIBS], [" -ldl"])
])
])

WITH_SAVE_ENV([
CFLAGS="$CFLAGS $LIBFFI_CFLAGS"
Expand Down
Loading
0