summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-07-01 07:23:41 (GMT)
committerGitHub <noreply@github.com>2022-07-01 07:23:41 (GMT)
commitd6acdc1b60de4f6fd05c6654a9661b7edddf0448 (patch)
tree792904372e57492b29d62813f768884af99a0032 /configure
parent62bb7a3b50150495e215d7bd32f633eef81b3bc2 (diff)
downloadcpython-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-xconfigure10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure b/configure
index 014d2ce..9144ee1 100755
--- a/configure
+++ b/configure
@@ -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