From e191e227d2edfb9e014b559100bb30f0a536bb96 Mon Sep 17 00:00:00 2001 From: Ambroz Bizjak Date: Sun, 25 Jan 2015 02:07:49 +0100 Subject: [PATCH] glibc: Disable copying libgcc when cross compiling. It seems this is only needed for native bootstrapping. --- pkgs/development/libraries/glibc/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/glibc/default.nix b/pkgs/development/libraries/glibc/default.nix index b6aad578204..b0a28406473 100644 --- a/pkgs/development/libraries/glibc/default.nix +++ b/pkgs/development/libraries/glibc/default.nix @@ -32,7 +32,7 @@ in # Building from a proper gcc staying in the path where it was installed, # libgcc_s will not be at {gcc}/lib, and gcc's libgcc will be found without # any special hack. - preInstall = '' + preInstall = if cross != null then "" else '' if [ -f ${stdenv.cc.cc}/lib/libgcc_s.so.1 ]; then mkdir -p $out/lib cp ${stdenv.cc.cc}/lib/libgcc_s.so.1 $out/lib/libgcc_s.so.1