Merge pull request #28374 from obsidiansystems/binutils-arm
binutils: Pass --build --host on non-arm
This commit is contained in:
commit
9884a3b17a
@ -84,7 +84,12 @@ stdenv.mkDerivation rec {
|
|||||||
else "-static-libgcc";
|
else "-static-libgcc";
|
||||||
|
|
||||||
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
# 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 =
|
configureFlags =
|
||||||
[ "--enable-shared" "--enable-deterministic-archives" "--disable-werror" ]
|
[ "--enable-shared" "--enable-deterministic-archives" "--disable-werror" ]
|
||||||
++ optional (stdenv.system == "mips64el-linux") "--enable-fix-loongson2f-nop"
|
++ optional (stdenv.system == "mips64el-linux") "--enable-fix-loongson2f-nop"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user