[Buildroot] [PATCH 1/4] package/qt5/qt5base: disable predefined -Og optimization

Giulio Benetti giulio.benetti at micronovasrl.com
Wed Jun 26 14:06:32 UTC 2019


Hello Thomas,

Il 22/06/2019 20:54, Thomas Petazzoni ha scritto:
> On Tue, 18 Jun 2019 10:45:32 +0200
> Giulio Benetti <giulio.benetti at micronovasrl.com> wrote:
> 
>> Starting from Qt5 5.9.0 -optimize-debug is enabled by default causing
>> -Og flag to be appended to CFLAGS and consequently override
>> TARGET_CFLAGS. We don't want this so let's pass -no-optimize-debug to
>> QT5BASE_CONFIGURE_OPTS if QT5_VERSION_LATEST=y.
>>
>> Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
> 
> In fact, optimize-debug is only enabled for debug builds, so I adjusted
> the commit log and comment and applied. It would be good to check if
> optimize-size is automatically enabled (or not) for release builds, and
> see if we should -no-optimize-size as well.

Fortunately you've pointed me this, in fact qt5 in release mode doesn't 
build according to TARGET_OPTIMIZATION.
I've just sent a patch for that:
https://patchwork.ozlabs.org/patch/1122817/

Best regards
-- 
Giulio Benetti
CTO

MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale € 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642



More information about the buildroot mailing list