From fe1aba93007106105ad4c20545a7b6aa12423d61 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 24 Nov 2021 10:19:19 +0100 Subject: [PATCH] bpo-45847: Fix _crypt detection on Ubuntu For some reason the linker check does not work on Ubuntu if ``-lcrypt`` is in ``LDFLAGS`` instead of ``LIBS``. --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 70c94a4e24d602..1e64aaf47bba9e 100755 --- a/configure +++ b/configure @@ -15542,7 +15542,7 @@ save_LIBS=$LIBS CPPFLAGS="$LIBCRYPT_CFLAGS $CFLAGS" - LDFLAGS="$LIBCRYPT_LIBS $LDFLAGS" + LIBS="$LIBCRYPT_LIBS $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt or crypt_r" >&5 $as_echo_n "checking for crypt or crypt_r... " >&6; } if ${ac_cv_crypt_crypt+:} false; then : diff --git a/configure.ac b/configure.ac index a161a8cf885456..22ce27a931e1ea 100644 --- a/configure.ac +++ b/configure.ac @@ -4223,7 +4223,7 @@ PKG_CHECK_MODULES([LIBCRYPT], [libxcrypt >= 3.1.1], [ WITH_SAVE_ENV([ CPPFLAGS="$LIBCRYPT_CFLAGS $CFLAGS" - LDFLAGS="$LIBCRYPT_LIBS $LDFLAGS" + LIBS="$LIBCRYPT_LIBS $LIBS" AC_CACHE_CHECK([for crypt or crypt_r], [ac_cv_crypt_crypt], [ AC_LINK_IFELSE([AC_LANG_PROGRAM([ #ifdef HAVE_CRYPT_H