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

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Jun 22 18:54:01 UTC 2019


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.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list