[PATCH] Enable GDB build with in-tree GMP and MPFR

Bernd Edlinger bernd.edlinger@hotmail.de
Tue Nov 17 07:41:55 GMT 2020


Hi,

this enables GDB build with in-tree GMP and MPFR.

This updated version of my patch added support for in-tree MPFR.

While there is no preexisting --with-gmp configure option in gdb,
this leaves the current --with-mpfr=yes/no/auto as it is, since it seems
to work by accident.  The top level config script thinks "no" is
a DIR, and skips the detection of in-tree MPFR in that case, while
gdb honors --with-mpfr=no, so that is what's expected.

The in-tree build works only when no --with-mpfr and no
--with-gmp is given.  While it does not advertise --with-gmp-prefix=DIR
and/or --with-mpfr-prefix=DIR with "./configure --help", I'll leave that
for another patch.


Tested on x86_64-pc-linux-gnu and cross-build for arm.
Is it OK for the trunk?


Thanks
Bernd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Enable-GDB-build-with-in-tree-GMP-and-MPFR.patch
Type: text/x-patch
Size: 7186 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/gdb-patches/attachments/20201117/ff6da48d/attachment.bin>


More information about the Gdb-patches mailing list