From 099584a27c48fe9f1d6866da7d884134dac71f00 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Fri, 9 Sep 2016 04:40:14 +0200 Subject: [PATCH] busybox: fix static build The static build fails with undefined references to __memcpy_chk when the fortify hardening is enabled. --- pkgs/os-specific/linux/busybox/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/busybox/default.nix b/pkgs/os-specific/linux/busybox/default.nix index efb06ba845e8..a33a0584a206 100644 --- a/pkgs/os-specific/linux/busybox/default.nix +++ b/pkgs/os-specific/linux/busybox/default.nix @@ -33,7 +33,7 @@ stdenv.mkDerivation rec { sha256 = "16ii9sqracvh2r1gfzhmlypl269nnbkpvrwa7270k35d3bigk9h5"; }; - hardeningDisable = [ "format" ]; + hardeningDisable = [ "format" ] ++ lib.optional enableStatic [ "fortify" ]; patches = [ ./busybox-in-store.patch ];