Skip to content

Commit 60bf01c

Browse files
committed
python3: Fix unnecessary linking with libbsd
configure will try to link with libbsd for the flock function, even when flock is available without it. Fixes: openwrt#21161 Fixes: 2445fe9 ("python3: Update to 3.11.3, refresh/redo patches") Signed-off-by: Jeffery To <jeffery.to@gmail.com>
1 parent 6b8340d commit 60bf01c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lang/python/python3/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ CONFIGURE_VARS += \
153153
ac_cv_file__dev_ptc=no \
154154
ac_cv_file__dev_ptmx=yes
155155

156+
# Do not link with libbsd for flock
157+
# https://github.com/openwrt/packages/issues/21161
158+
CONFIGURE_VARS += \
159+
ac_cv_lib_bsd_flock=no
160+
156161
# Disable stdlib modules
157162
# Check for a better way in the future: https://github.com/python/cpython/issues/98558
158163
CONFIGURE_VARS += \

0 commit comments

Comments
 (0)