diff options
author | Christian Heimes <christian@python.org> | 2022-07-01 07:23:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 07:23:41 (GMT) |
commit | d6acdc1b60de4f6fd05c6654a9661b7edddf0448 (patch) | |
tree | 792904372e57492b29d62813f768884af99a0032 /configure | |
parent | 62bb7a3b50150495e215d7bd32f633eef81b3bc2 (diff) | |
download | cpython-d6acdc1b60de4f6fd05c6654a9661b7edddf0448.zip cpython-d6acdc1b60de4f6fd05c6654a9661b7edddf0448.tar.gz cpython-d6acdc1b60de4f6fd05c6654a9661b7edddf0448.tar.bz2 |
gh-90005-ffi: Fix building _ctypes without pkg-config (GH-94451)
The fallback path did not set LIBFFI_LIBS variable to link with ``-lffi``.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -12133,7 +12133,10 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5 $as_echo "$ac_cv_lib_ffi_ffi_call" >&6; } if test "x$ac_cv_lib_ffi_ffi_call" = xyes; then : - have_libffi=yes + + have_libffi=yes + LIBFFI_LIBS="-lffi" + else have_libffi=no fi @@ -12200,7 +12203,10 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5 $as_echo "$ac_cv_lib_ffi_ffi_call" >&6; } if test "x$ac_cv_lib_ffi_ffi_call" = xyes; then : - have_libffi=yes + + have_libffi=yes + LIBFFI_LIBS="-lffi" + else have_libffi=no fi |