python27: fix build with gcc15 (#446055)

This commit is contained in:
Aleksana
2025-09-29 11:41:39 +08:00
committed by GitHub
@@ -319,7 +319,8 @@ stdenv.mkDerivation (
env.NIX_CFLAGS_COMPILE =
lib.optionalString (stdenv.targetPlatform.system == "x86_64-darwin") "-msse2"
+ lib.optionalString stdenv.hostPlatform.isMusl " -DTHREAD_STACK_SIZE=0x100000";
+ lib.optionalString stdenv.hostPlatform.isMusl " -DTHREAD_STACK_SIZE=0x100000"
+ " -std=gnu17";
DETERMINISTIC_BUILD = 1;
setupHook = python-setup-hook sitePackages;