mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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