From 4aa3295f84c43ed5acb4d6d3637823a7a96d8d48 Mon Sep 17 00:00:00 2001 From: Hubert Jasudowicz Date: Tue, 7 Jan 2025 02:58:30 +0100 Subject: [PATCH] buildah: Disable PIE hardening --- pkgs/development/tools/buildah/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/tools/buildah/default.nix b/pkgs/development/tools/buildah/default.nix index 4b2ea26f6985..968825b79212 100644 --- a/pkgs/development/tools/buildah/default.nix +++ b/pkgs/development/tools/buildah/default.nix @@ -36,6 +36,9 @@ buildGoModule rec { doCheck = false; + # /nix/store/.../bin/ld: internal/mkcw/embed/entrypoint_amd64.o: relocation R_X86_64_32S against `.rodata.1' can not be used when making a PIE object; recompile with -fPIE + hardeningDisable = [ "pie" ]; + nativeBuildInputs = [ go-md2man installShellFiles