Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] package/qt5/qt5base: build with correct optimization
Date: Sat, 3 Aug 2019 12:21:41 +0200	[thread overview]
Message-ID: <20190803122141.67580d55@windsurf.home> (raw)
In-Reply-To: <20190626140412.101607-2-giulio.benetti@micronovasrl.com>

Hello,

On Wed, 26 Jun 2019 16:04:12 +0200
Giulio Benetti <giulio.benetti@micronovasrl.com> wrote:

> diff --git a/package/qt5/qt5base/qmake.conf.in b/package/qt5/qt5base/qmake.conf.in
> index 26bee2cb39..4de880d2a2 100644
> --- a/package/qt5/qt5base/qmake.conf.in
> +++ b/package/qt5/qt5base/qmake.conf.in
> @@ -15,6 +15,7 @@ QMAKE_CXX               = $${CROSS_COMPILE}g++
>  # modifications to gcc-base.conf
>  QMAKE_CFLAGS           += $${BR_COMPILER_CFLAGS}
>  QMAKE_CXXFLAGS         += $${BR_COMPILER_CXXFLAGS}
> +QMAKE_CFLAGS_OPTIMIZE_FULL  = $${BR_OPTIMIZATION}
>  CONFIG                 += nostrip
>  
>  QMAKE_LIBS             += -lrt -lpthread -ldl
> diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
> index e4aa76908a..69e90a37b3 100644
> --- a/package/qt5/qt5base/qt5base.mk
> +++ b/package/qt5/qt5base/qt5base.mk
> @@ -361,6 +361,7 @@ define QT5BASE_CONFIGURE_CMDS
>  		-device-option CROSS_COMPILE="$(TARGET_CROSS)" \
>  		-device-option BR_COMPILER_CFLAGS="$(QT5BASE_CFLAGS)" \
>  		-device-option BR_COMPILER_CXXFLAGS="$(QT5BASE_CXXFLAGS)" \
> +		-device-option BR_OPTIMIZATION="$(TARGET_OPTIMIZATION)" \

TARGET_OPTIMIZATION is already inside TARGET_CFLAGS, so it doesn't make
a lot of sense to pass them again. Basically, it's just easier to set
QMAKE_CFLAGS_OPTIMIZE, QMAKE_CFLAGS_OPTIMIZE_FULL,
QMAKE_CFLAGS_OPTIMIZE_SIZE, QMAKE_CFLAGS_OPTIMIZE_DEBUG to the empty
value. See the final commit at:

  https://git.buildroot.org/buildroot/commit/?id=7c0aa83527e0b0179f9e3f73a3e63df1fdc5a6e6

Thanks!

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

  reply	other threads:[~2019-08-03 10:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-26 14:04 [Buildroot] [PATCH 1/2] package/qt5/qt5base: drop wrong optimization flag Giulio Benetti
2019-06-26 14:04 ` [Buildroot] [PATCH 2/2] package/qt5/qt5base: build with correct optimization Giulio Benetti
2019-08-03 10:21   ` Thomas Petazzoni [this message]
2019-08-03 17:08     ` Giulio Benetti
2019-08-03 10:20 ` [Buildroot] [PATCH 1/2] package/qt5/qt5base: drop wrong optimization flag Thomas Petazzoni
2019-08-29 21:42 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190803122141.67580d55@windsurf.home \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox