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.
commit5aad70e8beb98a1c855facea5c9749f644e8b897
authormisuzu <bakalolka@gmail.com>
dateWed 23 Jun 2021, 11:29 (5 years ago)
parent7e567a3
pkgs/development/tools/misc/binutils/default.nix+1−1
@@ -70,7 +70,7 @@ stdenv.mkDerivation {
7070 # indeed GHC will refuse to compile with a binutils suffering from it. See
7171 # this comment for more information:
7272 # https://gitlab.haskell.org/ghc/ghc/issues/4210#note_78333
73− lib.optional stdenv.targetPlatform.isAarch32 ./R_ARM_COPY.patch;
73+ lib.optional (stdenv.targetPlatform.isAarch32 && stdenv.hostPlatform.system != stdenv.targetPlatform.system) ./R_ARM_COPY.patch;
7474
7575 outputs = [ "out" "info" "man" ];
7676