From: Giuseppe Crino' Date: Wed, 28 Aug 2019 08:15:57 GMT Subject: Re: How to build to debug with gdb? Message-ID: <20190828081557.GA18785@instance-template-2.europe-west6-a.c.vaulted-journal-250706.internal> In-Reply-To: <1d44d8d6-6c6f-591e-dd2c-5102c9fd7d11@kdbg.org> On Tue, Aug 27, 2019 at 08:36:40PM +0200, SZEDER Gábor wrote: > Try using the same build flags for the install, i.e.: > > make prefix=/usr/local DEVELOPER=1 CFLAGS="-O0 -g" install Yes, now it works thanks! On Tue, Aug 27, 2019 at 08:34:23PM +0200, Johannes Sixt wrote: > That is because the command sequence above does not do what you think it > does. Didn't you notice that everything was recompiled during `sudo make > install`? Shouldn't be this documented somewhere? To my knowledge `make install` is expected to copy artifacts of the build under prefix. It's unusual to me that `install` has the `all` target as prerequisite.