Merge pull request #127875 from misuzu/binutils-armv7l-native-fix

binutils: apply R_ARM_COPY.patch only when cross-compiling to armv7l
This commit is contained in:
John Ericson 2021-06-29 10:40:08 -04:00 committed by GitHub
commit db6e089456
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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