aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-10-11 13:50:03 -0400
committerMike Gilbert <floppym@gentoo.org>2021-10-11 15:22:12 -0400
commitc60a5951ede9b8bba872d590aaf78dc656dfe2ef (patch)
tree34e287d1c367248c23fd6700b83525974fbcdf22
parentcloses bpo-44751: Move crypt.h include from public header to _cryptmodule (GH... (diff)
downloadcpython-gentoo-3.9.7_p1.tar.gz
cpython-gentoo-3.9.7_p1.tar.bz2
cpython-gentoo-3.9.7_p1.zip
bpo-45433: Do not link libpython against libcryptgentoo-3.9.7_p1
Save/restore LIBS when calling AC_SEARCH_LIBS(..., crypt). This avoid linking libpython with libcrypt.
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5f7705ecd88..53ec68bbbe9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4031,6 +4031,8 @@ AC_CHECK_FUNCS(setpgrp,
# We search for both crypt and crypt_r as one or the other may be defined
# This gets us our -lcrypt in LIBS when required on the target platform.
+# Save/restore LIBS to avoid linking libpython with libcrypt.
+LIBS_SAVE=$LIBS
AC_SEARCH_LIBS(crypt, crypt)
AC_SEARCH_LIBS(crypt_r, crypt)
@@ -4045,6 +4047,7 @@ char *r = crypt_r("", "", &d);
[AC_DEFINE(HAVE_CRYPT_R, 1, [Define if you have the crypt_r() function.])],
[])
)
+LIBS=$LIBS_SAVE
AC_CHECK_FUNCS(clock_gettime, [], [
AC_CHECK_LIB(rt, clock_gettime, [