From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnout Vandecappelle Date: Tue, 25 May 2021 22:30:25 +0200 Subject: [Buildroot] [PATCHv3 01/15] package/Makefile.in: pass '-g0' explicitly if !BR2_ENABLE_DEBUG In-Reply-To: <20210525122750.5022-2-patrickdepinguin@gmail.com> References: <20210525122750.5022-1-patrickdepinguin@gmail.com> <20210525122750.5022-2-patrickdepinguin@gmail.com> Message-ID: <3c053f30-95a3-5e2b-1def-03ccfc5e6f85@mind.be> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 25/05/2021 14:27, Thomas De Schampheleire wrote: > From: Thomas De Schampheleire > > If BR2_ENABLE_DEBUG is not set, Buildroot did not pass any flag > to control debug level. This means that the build system of the package > itself would control it. > > Instead, provide an explicit '-g0' (no debugging symbols) to get consistent > behavior across packages. > > Suggested-by: Arnout Vandecappelle > Signed-off-by: Thomas De Schampheleire Applied to next, thanks. Regards, Arnout > --- > package/Makefile.in | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/package/Makefile.in b/package/Makefile.in > index f4028bc67c..86db62ba5b 100644 > --- a/package/Makefile.in > +++ b/package/Makefile.in > @@ -136,6 +136,9 @@ endif > ifeq ($(BR2_OPTIMIZE_FAST),y) > TARGET_OPTIMIZATION = -Ofast > endif > +ifeq ($(BR2_ENABLE_DEBUG),) > +TARGET_DEBUGGING = -g0 > +endif > ifeq ($(BR2_DEBUG_1),y) > TARGET_DEBUGGING = -g1 > endif >