Skip to content

Commit b8d3bb7

Browse files
[3.11] gh-90005: Don't link with libbsd if not needed (#105236) (#105359)
The regression was introduced with commit 5b946ca. Restore pre gh-29696 behaviour.
1 parent faae548 commit b8d3bb7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
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

+3-3
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
@@ -4696,9 +4696,8 @@ AC_CACHE_CHECK([for flock declaration], [ac_cv_flock_decl],
46964696
])
46974697
dnl Linking with libbsd may be necessary on AIX for flock function.
46984698
AS_VAR_IF([ac_cv_flock_decl], [yes],
4699-
AC_CHECK_FUNCS([flock])
4700-
AC_CHECK_LIB([bsd], [flock], [FCNTL_LIBS="-lbsd"])
4701-
)
4699+
[AC_CHECK_FUNCS([flock], [],
4700+
[AC_CHECK_LIB([bsd], [flock], [FCNTL_LIBS="-lbsd"])])])
47024701

47034702
PY_CHECK_FUNC([getpagesize], [#include <unistd.h>])
47044703

0 commit comments

Comments
 (0)