But then you can set the parameters as you want them in your local
configuration. Setting -g globally in the absence of DEBUG_BUILD needs
a use case that applies to most users.

Alex

On Thu, 22 Jun 2023 at 19:11, Maxime Roussin-Bélanger
<[email protected]> wrote:
>
> Hi Alex,
>
> I don't want a complete debug build. I want to keep optimization and
> have the debug symbols. I don't think I can achieve that with
> DEBUG_BUILD.
>
> Max
>
> On Thu, Jun 22, 2023 at 12:30 PM Alexander Kanavin
> <[email protected]> wrote:
> >
> > This change is unnecessary, as there is already a mechanism. Just
> > slightly further down you can see that BUILDSDK_CFLAGS pulls in
> > BUILD_OPTIMIZATION, which sets -g if you enable DEBUG_BUILD in your
> > config.
> >
> > Alex
> >
> > On Thu, 22 Jun 2023 at 18:20, Maxime Roussin-Bélanger
> > <[email protected]> wrote:
> > >
> > > From: Maxime Roussin-Belanger <[email protected]>
> > >
> > > Without adding debug flag nativesdk dbg package is not packaged since
> > > there is no debugging information
> > >
> > > Signed-off-by: Maxime Roussin-Belanger <[email protected]>
> > > ---
> > > v2: New commit
> > >
> > >  meta/conf/bitbake.conf | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> > > index 9d9b268858..0635affbc1 100644
> > > --- a/meta/conf/bitbake.conf
> > > +++ b/meta/conf/bitbake.conf
> > > @@ -601,7 +601,7 @@ PATCHRESOLVE = "noop"
> > >  ##################################################################
> > >
> > >  export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}"
> > > -BUILDSDK_CPPFLAGS = ""
> > > +BUILDSDK_CPPFLAGS ?= "-g"
> > >  export CPPFLAGS = "${TARGET_CPPFLAGS}"
> > >  TARGET_CPPFLAGS = ""
> > >
> > > --
> > > 2.36.0
> > >
> > >
> > > 
> > >
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#183308): 
https://lists.openembedded.org/g/openembedded-core/message/183308
Mute This Topic: https://lists.openembedded.org/mt/99701056/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to