pkgsi686Linux.pkgsMusl.gzip: Fix build

Set -no-pie for gzip on this specific platform.

The ASM fast-path makes object references without going through PLT,
which would need to be relocated. Then musl ldd tries to apply
relocations to an R-X .text section and crashes.
This commit is contained in:
Aleksi Hannula
2026-03-05 10:52:01 +02:00
parent e0239fe703
commit ae147f005a
+4
View File
@@ -48,6 +48,10 @@ stdenv.mkDerivation (finalAttrs: {
"ZLESS_PROG=zless"
];
env = lib.optionalAttrs (stdenv.hostPlatform.isMusl && stdenv.hostPlatform.isx86_32) {
NIX_CFLAGS_LINK = "-no-pie";
};
nativeCheckInputs = [
less
perl