3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
misuzu 2021-06-23 11:29:41 +03:00
parent 7e567a3d09
commit 5aad70e8be

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