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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user