python3: improve cross-compilation of extension modules, fixes #91171

This commit is contained in:
Frederik Rietdijk
2020-06-21 16:29:57 +02:00
parent ae3d755af4
commit f03734efa0
2 changed files with 36 additions and 0 deletions
@@ -140,6 +140,9 @@ in with passthru; stdenv.mkDerivation {
sha256 = "1h18lnpx539h5lfxyk379dxwr8m2raigcjixkf133l4xy3f4bzi2";
}
)
] ++ [
# LDSHARED now uses $CC instead of gcc. Fixes cross-compilation of extension modules.
./3.8/0001-On-all-posix-systems-not-just-Darwin-set-LDSHARED-if.patch
];
postPatch = ''