[PATCHv2] Use toplevel configure for GMP and MPFR for gdb

Nick Clifton nickc@redhat.com
Tue Jan 3 11:51:56 GMT 2023


Hi Clément,

> Since this patch, binutils without mpfr and gmp is unable to build
> when gdb is disabled (with configure option --disable-gdb). But
> AFAICT, these libraries are not required if gdb isn't there.

Agreed - binutils does not use them.

> Moreover, the following error looks wrong to me when gdb is explicitly
> requested not to be built.
>    | configure: error: Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
>    | Try the --with-gmp and/or --with-mpfr options to specify

Yup - the message should not be generated if gdb is not being built.

> Thus, I'm wondering if there are any plans to also use gmp and mpfr in
> binutils without gdb (adding Nick for that) ? 

No - there are none.

> Or is this patch only meant for gdb and should be adjusted for --disable-gdb ?

It should be adjusted.

Cheers
   Nick




More information about the Binutils mailing list