Skip to content

Commit

Permalink
python3: Fix unnecessary linking with libbsd
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit 60bf01c)
  • Loading branch information
jefferyto committed May 25, 2023
1 parent 26f502b commit f619e26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lang/python/python3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ CONFIGURE_VARS += \
ac_cv_file__dev_ptc=no \
ac_cv_file__dev_ptmx=yes

# Do not link with libbsd for flock
# https://github.com/openwrt/packages/issues/21161
CONFIGURE_VARS += \
ac_cv_lib_bsd_flock=no

# Disable stdlib modules
# Check for a better way in the future: https://github.com/python/cpython/issues/98558
CONFIGURE_VARS += \
Expand Down

0 comments on commit f619e26

Please sign in to comment.