Unverified Commit a411b337 authored by superherointj's avatar superherointj Committed by GitHub
Browse files

Merge pull request #209622 from NickCao/python311-cross

python311: fix cross compilation
parents b4374ad4 f742c6d4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -345,6 +345,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.