Subject: Re: How to build to debug with gdb?

From: SZEDER Gábor <[email-masked]>
Date: Tue, 27 Aug 2019 20:36:40 +0200

On Tue, Aug 27, 2019 at 04:27:25PM +0000, Giuseppe Crino' wrote:
> Hello, to debug some issues I built and installed git via
> 
> $ make prefix=/usr/local DEVELOPER=1 CFLAGS="-O0 -g"
> $ sudo make install

What do the output of these two command look like?  After the first
command build Git with the custom prefix and CFLAGS, the second
command is supposed to start with printing "* new build flags" and
then to build Git again with the default prefix and CFLAGS.

>  What am I missing?

Just a couple hundred lines worth of build output :)

Try using the same build flags for the install, i.e.:

  make prefix=/usr/local DEVELOPER=1 CFLAGS="-O0 -g" install