bug#78377: Cross-Compile - "src/make-prime-list: cannot execute: required file not found"

NR <[email protected]>
Newsgroups gmane.comp.gnu.core-utils.bugs
Message-ID <CALaQ_hq=wsCX7eh8kbeyhLzAJs1yE9GTfY98HsQjzpu6j4FERg@mail.gmail.com>
It'd be nice to be able to cross-compile coreutils.

It could be done by detecting if `--host=` is different from the build system.
If it is different, then make the `src/primes.h` target natively
(specifically the `src/make-prime-list` target).

I noticed it was a very old issue (going back to 2012).
My workaround was just to `configure` without any arguments, `make
src/primes.h`, then `configure` again for cross-compiling, and run a
normal `make`.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.