Message ID | 20230629122808.730507-1-peter.marko@siemens.com |
---|---|
State | New |
Headers | show |
Series | gcsections: apply section removal also in C++, not only in C | expand |
Hello Peter, I have collected it but this patch should have gone to the poky mailing list as this is for meta-yocto. On 29/06/2023 14:28:08+0200, Peter Marko via lists.openembedded.org wrote: > From: Peter Marko <peter.marko@siemens.com> > > Currently only CFLAGS contains sections optimizations. > This is used during C compilation. > C++ compilation uses CXXFLAGS instead. > > I did not introduce CXXFLAGS_SECTION_REMOVAL because the options > are identical in C and C++, while adding it would add whole lot > of additional useless lines of code to maintain. > > Signed-off-by: Peter Marko <peter.marko@siemens.com> > --- > meta-poky/conf/distro/include/gcsections.inc | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta-poky/conf/distro/include/gcsections.inc b/meta-poky/conf/distro/include/gcsections.inc > index a1f8651ae9..0e7bd2efff 100644 > --- a/meta-poky/conf/distro/include/gcsections.inc > +++ b/meta-poky/conf/distro/include/gcsections.inc > @@ -27,8 +27,10 @@ LDFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-winpthreads = "" > > # set default for target > CFLAGS:append:class-target = " ${CFLAGS_SECTION_REMOVAL}" > +CXXFLAGS:append:class-target = " ${CFLAGS_SECTION_REMOVAL}" > LDFLAGS:append:class-target = " ${LDFLAGS_SECTION_REMOVAL}" > > # set default for nativesdk > CFLAGS:append:class-nativesdk = " ${CFLAGS_SECTION_REMOVAL}" > +CXXFLAGS:append:class-nativesdk = " ${CFLAGS_SECTION_REMOVAL}" > LDFLAGS:append:class-nativesdk = " ${LDFLAGS_SECTION_REMOVAL}" > -- > 2.30.2 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#183621): https://lists.openembedded.org/g/openembedded-core/message/183621 > Mute This Topic: https://lists.openembedded.org/mt/99849581/3617179 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta-poky/conf/distro/include/gcsections.inc b/meta-poky/conf/distro/include/gcsections.inc index a1f8651ae9..0e7bd2efff 100644 --- a/meta-poky/conf/distro/include/gcsections.inc +++ b/meta-poky/conf/distro/include/gcsections.inc @@ -27,8 +27,10 @@ LDFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-winpthreads = "" # set default for target CFLAGS:append:class-target = " ${CFLAGS_SECTION_REMOVAL}" +CXXFLAGS:append:class-target = " ${CFLAGS_SECTION_REMOVAL}" LDFLAGS:append:class-target = " ${LDFLAGS_SECTION_REMOVAL}" # set default for nativesdk CFLAGS:append:class-nativesdk = " ${CFLAGS_SECTION_REMOVAL}" +CXXFLAGS:append:class-nativesdk = " ${CFLAGS_SECTION_REMOVAL}" LDFLAGS:append:class-nativesdk = " ${LDFLAGS_SECTION_REMOVAL}"