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:
parent
91903ceb29
commit
fd5d487ef4
@ -70,7 +70,7 @@ stdenv.mkDerivation {
|
|||||||
# indeed GHC will refuse to compile with a binutils suffering from it. See
|
# indeed GHC will refuse to compile with a binutils suffering from it. See
|
||||||
# this comment for more information:
|
# this comment for more information:
|
||||||
# https://gitlab.haskell.org/ghc/ghc/issues/4210#note_78333
|
# 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" ];
|
outputs = [ "out" "info" "man" ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user