Skip to content

Commit 0011b4e

Browse files
committed
gh-151422: Don't link libffi into _ctypes_test.so
Minor build fix
1 parent f4f1020 commit 0011b4e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

configure

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8447,9 +8447,11 @@ PY_STDLIB_MOD([_testmultiphase], [test "$TEST_MODULES" = yes], [test "$ac_cv_fun
84478447
PY_STDLIB_MOD([_testsinglephase], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
84488448
PY_STDLIB_MOD([xxsubtype], [test "$TEST_MODULES" = yes])
84498449
PY_STDLIB_MOD([_xxtestfuzz], [test "$TEST_MODULES" = yes])
8450+
dnl Check have_libffi so _ctypes_test is only built if _ctypes is built.
8451+
dnl _ctypes_test doesn't use libffi directly.
84508452
PY_STDLIB_MOD([_ctypes_test],
84518453
[test "$TEST_MODULES" = yes], [test "$have_libffi" = yes -a "$ac_cv_func_dlopen" = yes],
8452-
[$LIBFFI_CFLAGS], [$LIBFFI_LIBS $LIBM])
8454+
[], [$LIBM])
84538455

84548456
dnl Limited API template modules.
84558457
dnl Emscripten does not support shared libraries yet.

0 commit comments

Comments
 (0)