@@ -35,7 +35,10 @@ callPackage ./common.nix { inherit stdenv; } {
3535 # The stackprotector and fortify hardening flags are autodetected by glibc
3636 # and enabled by default if supported. Setting it for every gcc invocation
3737 # does not work.
38− hardeningDisable = [ "stackprotector" "fortify" ];
38+ hardeningDisable = [ "stackprotector" "fortify" ]
39+ # XXX: Not actually musl-speciic but since only musl enables pie by default,
40+ # limit rebuilds by only disabling pie w/musl
41+ ++ stdenv.lib.optional stdenv.hostPlatform.isMusl "pie";
3942
4043 # When building glibc from bootstrap-tools, we need libgcc_s at RPATH for
4144 # any program we run, because the gcc will have been placed at a new