diff options
author | Ambroz Bizjak <ambrop7@gmail.com> | 2015-01-25 02:07:49 +0100 |
---|---|---|
committer | Ambroz Bizjak <ambrop7@gmail.com> | 2015-02-05 21:25:40 +0100 |
commit | e191e227d2edfb9e014b559100bb30f0a536bb96 (patch) | |
tree | ecd766febf35c9dfd006b7c5255d05ec25ec7dcb /pkgs/development/libraries/glibc | |
parent | 0a8ca604b4163a0f0854d14e4463a7aff9f843d0 (diff) | |
download | nixlib-e191e227d2edfb9e014b559100bb30f0a536bb96.tar nixlib-e191e227d2edfb9e014b559100bb30f0a536bb96.tar.gz nixlib-e191e227d2edfb9e014b559100bb30f0a536bb96.tar.bz2 nixlib-e191e227d2edfb9e014b559100bb30f0a536bb96.tar.lz nixlib-e191e227d2edfb9e014b559100bb30f0a536bb96.tar.xz nixlib-e191e227d2edfb9e014b559100bb30f0a536bb96.tar.zst nixlib-e191e227d2edfb9e014b559100bb30f0a536bb96.zip |
glibc: Disable copying libgcc when cross compiling.
It seems this is only needed for native bootstrapping.
Diffstat (limited to 'pkgs/development/libraries/glibc')
-rw-r--r-- | pkgs/development/libraries/glibc/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/glibc/default.nix b/pkgs/development/libraries/glibc/default.nix index b6aad5782045..b0a284064731 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 |