Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
binutils: Don't pass --host etc. when not cross-compiling
Or linuxHeaders build fails on ARM (non-cross) since e826a6a: ```` HOSTCC scripts/basic/fixdep /nix/store/9glws7v2j28blv1n7azqr3b43qadjd1j-binutils-2.28.1/bin/ld: unrecognised emulation mode: armelf_linux_eabi Supported emulations: armelf_linux armelf armelfb armelfb_linux collect2: error: ld returned 1 exit status ````
- Loading branch information
88efc22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dezgeg Please ping me for things like this---this will break
build != host == target
builds. #26805 I change linuxHeaders to use thebuild->build
c-compiler (HOSTCC
In Linux's very odd parlance) which fixes this without changing binutils.Don't get me wrong, this is the right fix for now, but good to know so I can revert it in that PR.
88efc22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait, this is arm non-cross. This is odd then---if the build succeeds at all the default configuration ought to be be fine.
88efc22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also odd is that changed landed for quite a while---long enough for the channel to advance---so it seems highly unlike this never worked.Oh right, 32-bit arm isn't supported.