Merge #210136: gawk: disable PIE on musl

...into staging-next
This commit is contained in:
Vladimír Čunát 2023-01-11 21:19:44 +01:00
commit d6a5fcbcc4
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -16,7 +16,7 @@
assert (doCheck && stdenv.isLinux) -> glibcLocales != null;
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
pname = "gawk" + lib.optionalString interactive "-interactive";
version = "5.2.1";
@ -83,4 +83,8 @@ stdenv.mkDerivation rec {
platforms = platforms.unix ++ platforms.windows;
maintainers = [ ];
};
}
} // lib.optionalAttrs stdenv.hostPlatform.isMusl {
# PIE is incompatible with the "persistent malloc" ("pma") feature.
# FIXME: make unconditional in staging (added to avoid rebuilds in staging-next)
hardeningDisable = [ "pie" ];
})