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:
parent
0a8ca604b4
commit
e191e227d2
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue