python311: fix cross compilation

This commit is contained in:
Nick Cao
2023-01-08 12:39:02 +08:00
parent ac7445e754
commit f742c6d443
@@ -344,6 +344,8 @@ in with passthru; stdenv.mkDerivation {
"ac_cv_computed_gotos=yes"
"ac_cv_file__dev_ptmx=yes"
"ac_cv_file__dev_ptc=yes"
] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform && pythonAtLeast "3.11") [
"--with-build-python=${pythonForBuildInterpreter}"
] ++ optionals stdenv.hostPlatform.isLinux [
# Never even try to use lchmod on linux,
# don't rely on detecting glibc-isms.