From 4478766b64d6d86a0ff983249effc4eedd792294 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Mon, 10 Feb 2020 23:54:16 -0500 Subject: [PATCH] make-bootstrap-tools: add libssp to allow stack protector to work --- pkgs/stdenv/linux/make-bootstrap-tools.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/stdenv/linux/make-bootstrap-tools.nix b/pkgs/stdenv/linux/make-bootstrap-tools.nix index 90a679756d7..ec5f1092a46 100644 --- a/pkgs/stdenv/linux/make-bootstrap-tools.nix +++ b/pkgs/stdenv/linux/make-bootstrap-tools.nix @@ -123,6 +123,8 @@ in with pkgs; rec { cp -d ${bootGCC.out}/bin/g++ $out/bin cp -d ${bootGCC.lib}/lib/libgcc_s.so* $out/lib cp -d ${bootGCC.lib}/lib/libstdc++.so* $out/lib + cp -d ${bootGCC.out}/lib/libssp.a* $out/lib + cp -d ${bootGCC.out}/lib/libssp_nonshared.a $out/lib cp -rd ${bootGCC.out}/lib/gcc $out/lib chmod -R u+w $out/lib rm -f $out/lib/gcc/*/*/include*/linux