python3: unset MACOSX_DEPLOYMENT_TARGET

Setting an old target conflicts with the -stack_size,1000000 linker
flag. This fixes build of python310.

This reverts ce59dec5 ('python34: as a workaround, explicitly set MACOSX_DEPLOYMENT_TARGET')
This commit is contained in:
Dmitry Kalinkin 2022-02-01 20:26:12 -05:00
parent f557203a04
commit 49a0059a59
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -344,7 +344,6 @@ in with passthru; stdenv.mkDerivation {
done
'' + optionalString stdenv.isDarwin ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -msse2"
export MACOSX_DEPLOYMENT_TARGET=10.6
# Override the auto-detection in setup.py, which assumes a universal build
export PYTHON_DECIMAL_WITH_MACHINE=${if stdenv.isAarch64 then "uint128" else "x64"}
'' + optionalString (isPy3k && pythonOlder "3.7") ''