binutils: apply R_ARM_COPY.patch only when cross-compiling to armv7l

Applying R_ARM_COPY.patch when not cross-compiling breaks native armv7l builds.

(cherry picked from commit 5aad70e8beb98a1c855facea5c9749f644e8b897)
This commit is contained in:
misuzu 2021-06-23 11:29:41 +03:00 committed by github-actions[bot]
parent 91903ceb29
commit fd5d487ef4
1 changed files with 1 additions and 1 deletions

View File

@ -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" ];