Skip to content

Commit

Permalink
Disable ptsname_r on x86_64-apple-darwin for Python 3.13+
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Sep 6, 2024
1 parent b016368 commit 83e3dac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,12 @@ if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
export MACOSX_DEPLOYMENT_TARGET="${APPLE_MIN_DEPLOYMENT_TARGET}"
fi

# ptsrname_r is only available in SDK 13.4+
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
echo "Disabling ptsname_r due to macOS SDK 13.4+ requirement."
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_func_ptsname_r=no"
fi

# We use ndbm on macOS and BerkeleyDB elsewhere.
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-dbmliborder=ndbm"
Expand Down

0 comments on commit 83e3dac

Please sign in to comment.