Hi, On Tue, Feb 09, 2021 at 11:37:39PM -0800, Khem Raj wrote: > In this case -O will take effect sadly. and it seems to be that > autconf munges the compiler cmdline > while generating CFLAGS in generated Makefiles and appends the value > of -On coming from CC > variable last. > > I think right solution would be to add same -O<level> as specified in > SELECTED_OPTIMIZATION so it remains > in sync always, I have sent a patch to ml. Could you test it out and > let me know if it works for you as well.
Or let it go? A lot of recipes amend their own optimization flags and override distro wide optimization and other compiler flags. I once fixes all recipes in a project which were not obeying Os until buildhistory showed change in binary sizes... that was a lot of work for a PoC.. Cheers, -Mikko
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#147921): https://lists.openembedded.org/g/openembedded-core/message/147921 Mute This Topic: https://lists.openembedded.org/mt/80425803/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
