On Thu, Jun 2, 2022 at 5:54 PM Eric Gallager via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > So, I'm working on fixing PR bootstrap/44425, and have this patch to > have the top-level configure script check in the value passed to > `--prefix=` when looking for gmp/mpfr/mpc. It "works" (in that > configuring with just `--prefix=` and none of > `--with-gmp=`/`--with-mpfr=`/`--with-mpc=` now works where it failed > before), but unfortunately it results in a bunch of duplicated > `-I`/`-L` flags stuck in ${gmplibs} and ${gmpinc}... is that > acceptable or should I try another approach?
--prefix is documented as to be used for installing (architecture independent) files, I'm not sure it is a good idea to probe that for gmp/mpfr/mpc installs used for the host. Richard. > Eric