Skip to content

Commit 6e94027

Browse files
committed
Set ac_cv_func_explicit_bzero=no
1 parent ea84a55 commit 6e94027

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,12 @@ if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
475475
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_func_ptsname_r=no"
476476
fi
477477

478+
# explicit_bzero is only available in glibc 2.25+, but we target a lower version for compatibility.
479+
# it's only needed for the HACL Blake2 implementation in Python 3.14+
480+
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" ]; then
481+
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_func_explicit_bzero=no"
482+
fi
483+
478484
# We use ndbm on macOS and BerkeleyDB elsewhere.
479485
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
480486
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-dbmliborder=ndbm"

0 commit comments

Comments
 (0)