forked from mirrors/nixpkgs
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:
parent
b8bda4fec0
commit
a360198627
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue