[pushed/v2 1/9] gdb/configure: Add --with-libgmp-prefix option

Bernd Edlinger bernd.edlinger@hotmail.de
Sun Nov 15 15:52:40 GMT 2020


Hi Joel,

On 11/15/20 9:35 AM, Joel Brobecker wrote:
> This patch allows a user to tell gdb's configure script where
> his GMP library is installed.
> 
> gdb/ChangeLog:
> 
>         * configure.ac: Add support for --with-libgmp-prefix.
>         * Makefile.in (LIBGMP): New variable.
>         (CLIBS): Include $(LIBGMP).
>         * configure, config.in: Regenerate
> ---
>  gdb/ChangeLog    |   7 +
>  gdb/Makefile.in  |   5 +-
>  gdb/config.in    |   3 +
>  gdb/configure    | 488 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  gdb/configure.ac |   5 +
>  5 files changed, 507 insertions(+), 1 deletion(-)
> 

I noticed that this does not allow to build gmp in-tree like it is
possible for gcc.  I tried to overcome this by the attached patch.

While doing so, I also noticed an incompatibility with the top level
configure stript, which advertises, and passes -with-gmp-include
and -with-gmp-lib if in-tree gmp is found.

So the --with-libgmp-prefix is not that the top level configure
script suggests:

$ ./configure --help | grep gmp
  --with-gmp-dir=PATH     this option has been REMOVED
  --with-gmp=PATH         specify prefix directory for the installed GMP
                          --with-gmp-include=PATH/include plus
                          --with-gmp-lib=PATH/lib
  --with-gmp-include=PATH specify directory for installed GMP include files
  --with-gmp-lib=PATH     specify directory for the installed GMP library

What do you think, can we allow these traditional configure options
additional to the new --with-libgmp-prefix?

Can we the top level Makefile.def change in binutils-gdb or has this
be checked-in first in gcc?


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


More information about the Gdb-patches mailing list