3
0
Fork 0
forked from mirrors/nixpkgs

glibc: Disable copying libgcc when cross compiling.

It seems this is only needed for native bootstrapping.
This commit is contained in:
Ambroz Bizjak 2015-01-25 02:07:49 +01:00
parent 0a8ca604b4
commit e191e227d2

View file

@ -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