Skip to content

Commit 6f3a4fd

Browse files
[3.12] gh-90005: Don't link with libbsd if not needed (#105236) (#105360)
The regression was introduced with commit 5b946ca. Restore pre gh-29696 behaviour.
1 parent 3aa3be4 commit 6f3a4fd

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a regression in :file:`configure` where we could end up unintentionally linking with ``libbsd``.

configure

+6-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+2-3
Original file line numberDiff line numberDiff line change
@@ -4936,9 +4936,8 @@ AC_CACHE_CHECK([for flock declaration], [ac_cv_flock_decl],
49364936
])
49374937
dnl Linking with libbsd may be necessary on AIX for flock function.
49384938
AS_VAR_IF([ac_cv_flock_decl], [yes],
4939-
AC_CHECK_FUNCS([flock])
4940-
AC_CHECK_LIB([bsd], [flock], [FCNTL_LIBS="-lbsd"])
4941-
)
4939+
[AC_CHECK_FUNCS([flock], [],
4940+
[AC_CHECK_LIB([bsd], [flock], [FCNTL_LIBS="-lbsd"])])])
49424941

49434942
PY_CHECK_FUNC([getpagesize], [#include <unistd.h>])
49444943

0 commit comments

Comments
 (0)