https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92514
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sylvain Korzennik from comment #9)
> 1- that page does not tell me how to build a generic version
> ./config.guess returns the same value on ea machine, as does gcc
> -dumpmachine
> x86_64-pc-linux-gnu
>
> do I add --build=XX --host-XX or --target=XX and what XX to use? The
> doc is quite thin.
Well this is no longer a GCC question but rather a GMP question and you should
ask in their mailing list. But when built inside GCC, the following configure
options are passed to GMP:
--build=${build_alias} --host=none-${host_vendor}-${host_os} \
--target=none-${host_vendor}-${host_os}
> 2- you're not telling me if I need to rebuild all 4 components.
It depends on if you built them as shared libraries are static libraries. If
as shared, 99% sure you don't need to rebuild all 4, just GMP.