Skip to content

Commit

Permalink
Merge pull request #28374 from obsidiansystems/binutils-arm
Browse files Browse the repository at this point in the history
binutils: Pass --build --host on non-arm
  • Loading branch information
Ericson2314 authored Aug 23, 2017
2 parents e6661db + 41abe41 commit 9884a3b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/development/tools/misc/binutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ stdenv.mkDerivation rec {
else "-static-libgcc";

# TODO(@Ericson2314): Always pass "--target" and always prefix.
configurePlatforms = stdenv.lib.optionals (targetPlatform != hostPlatform) [ "build" "host" "target" ];
configurePlatforms =
# TODO(@Ericson2314): Figure out what's going wrong with Arm
if hostPlatform == targetPlatform && targetPlatform.isArm32
then []
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";

configureFlags =
[ "--enable-shared" "--enable-deterministic-archives" "--disable-werror" ]
++ optional (stdenv.system == "mips64el-linux") "--enable-fix-loongson2f-nop"
Expand Down

0 comments on commit 9884a3b

Please sign in to comment.