From d0efa70d8114756ca5aeb875b7f3cf6d61543d62 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 21 Sep 2023 08:05:03 +0300 Subject: [PATCH] Revert "Revert "Merge pull request #253760 from chivay/bootstrap-scrt"" This reverts commit 3f46cdcb5b903fe1c07707fea9ee24ae09d964b2. --- pkgs/stdenv/linux/make-bootstrap-tools.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/stdenv/linux/make-bootstrap-tools.nix b/pkgs/stdenv/linux/make-bootstrap-tools.nix index d6c4da0ab2be..1334c13ad170 100644 --- a/pkgs/stdenv/linux/make-bootstrap-tools.nix +++ b/pkgs/stdenv/linux/make-bootstrap-tools.nix @@ -78,7 +78,8 @@ in with pkgs; rec { cp -d ${libc.out}/lib/libutil*.so* $out/lib cp -d ${libc.out}/lib/libnss*.so* $out/lib cp -d ${libc.out}/lib/libresolv*.so* $out/lib - cp -d ${libc.out}/lib/crt?.o $out/lib + # Copy all runtime files to enable non-PIE, PIE, static PIE and profile-generated builds + cp -d ${libc.out}/lib/*.o $out/lib # Hacky compat with our current unpack-bootstrap-tools.sh ln -s librt.so "$out"/lib/librt-dummy.so