From: Marc Ferland <ferlandm@sonatest.com>
To: yocto@yoctoproject.org
Subject: Re: Qt build error for Debug and Release mode
Date: Tue, 18 Jun 2013 11:27:26 -0400 [thread overview]
Message-ID: <87obb3a17l.fsf@sonatest.com> (raw)
In-Reply-To: <CA+Z6RkWkUiy0omM_fYteVco1r_RQTbJdRpoqURrvrTAbB4ACgA@mail.gmail.com> (Navani Srivastava's message of "Tue, 18 Jun 2013 19:58:12 +0530")
Navani Srivastava <navani.srivastava@gmail.com> writes:
> Hi,
>
> I am using poky-danny (Poky-8.0). I am facing problem in building Qt
> application.
>
> When we are building Qt application with “qmake CONFIG+=debug &&
> make” it appends “-g” to build the application in debug mode but when
> we are building application in release mode by issuing following
> command “qmake CONFIG+=debug && make”, then also it appends “-g” to
> it.
>
> So building Qt application in release mode also results in debug mode
> output.
>
> Any fix for this?
>
You could override the OE_QMAKE_CFLAGS env variable like this:
OE_QMAKE_CFLAGS="-O2 -pipe -feliminate-unused-debug-types" make
If you look in the Makefile generated by qmake you should see something
like:
CFLAGS = -pipe -pipe $(OE_QMAKE_CFLAGS) -O2 ....
This OE_QMAKE_CFLAGS variable is evaluated by make from the
environment. Also look at your environment-setup-* file from the
SDK, this is where all OE_QMAKE variables are sourced from.
Marc
next prev parent reply other threads:[~2013-06-18 15:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9BACABF0C6B14A4D8C33B42A795119BE1BA55B7D@POCITMSEXMB05.LntUniverse.com>
2013-06-18 14:28 ` Qt build error for Debug and Release mode Navani Srivastava
2013-06-18 15:27 ` Marc Ferland [this message]
2013-06-18 16:15 ` Navani Srivastava
2013-06-18 20:41 ` Khem Raj
2013-06-19 17:12 ` Navani Srivastava
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=87obb3a17l.fsf@sonatest.com \
--to=ferlandm@sonatest.com \
--cc=yocto@yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.