Fixing the gcc postPatch, for the static stage of the cross-compiler

svn path=/nixpkgs/branches/stdenv-updates/; revision=25215
This commit is contained in:
Lluís Batlle i Rossell 2010-12-20 17:35:34 +00:00
parent b8bda4fec0
commit a360198627

View file

@ -180,7 +180,7 @@ stdenv.mkDerivation ({
# On NixOS, use the right path to the dynamic linker instead of
# `/lib/ld*.so'.
let
libc = if cross != null then libcCross else stdenv.gcc.libc;
libc = if (cross != null && libcCross != null) then libcCross else stdenv.gcc.libc;
in
'' echo "fixing the \`GLIBC_DYNAMIC_LINKER' and \`UCLIBC_DYNAMIC_LINKER' macros..."
for header in "gcc/config/"*-gnu.h "gcc/config/"*"/"*.h