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

Simon Marchi
2020-12-01T20:30:36Z

On 2020-12-01 3:29 p.m., Bernd Edlinger wrote:
> Hi Simon,
>
> On 12/1/20 8:38 PM, Bernd Edlinger wrote:
>> On 12/1/20 8:32 PM, Simon Marchi wrote:
>>>
>>> On 2020-12-01 2:29 p.m., Bernd Edlinger wrote:
>>>> I would really like to be able to build gdb with in-tree gmp / mpfr,
>>>> just as it works for gcc.
>>>
>>> Pardon my ignorance, but I don't see the gmp nor the mpfr source code in
>>> the binutils-gdb repository. Should it be checked in too?
>>>
>>
>>
>> Aehm, good question.
>> gcc uses a script ./contrib/download_prerequisites
>> that *can* be used to download gmp/mpfr and some more.
>>
>> Maybe I should add a stripped down version of that one?
>>
>
> So, this adds the contrib/download_prerequisites script.
>
> It is taken from gcc but does not download mpc and isl,
> just gmp and mpfr.
>
> It should work also when building gdb from the release tar.
>
>
> Is it OK to push?

I don't really know how it works, so I am not really the right person to
review it.

Simon