Merge pull request #131554 from NixOS/backport-127875-to-release-21.05
[Backport release-21.05] binutils: apply R_ARM_COPY.patch only when cross-compiling to armv7l
This commit is contained in:
commit
9d5f7324c2
|
@ -70,7 +70,7 @@ stdenv.mkDerivation {
|
|||
# indeed GHC will refuse to compile with a binutils suffering from it. See
|
||||
# this comment for more information:
|
||||
# https://gitlab.haskell.org/ghc/ghc/issues/4210#note_78333
|
||||
lib.optional stdenv.targetPlatform.isAarch32 ./R_ARM_COPY.patch;
|
||||
lib.optional (stdenv.targetPlatform.isAarch32 && stdenv.hostPlatform.system != stdenv.targetPlatform.system) ./R_ARM_COPY.patch;
|
||||
|
||||
outputs = [ "out" "info" "man" ];
|
||||
|
||||
|
|
Loading…
Reference in New Issue