[Interest] Optimizations in debug configuration

Konstantin Shegunov kshegunov at gmail.com
Sat Sep 24 03:25:05 CEST 2016


On Sat, Sep 24, 2016 at 3:50 AM, Konstantin Shegunov <kshegunov at gmail.com>
wrote:

> On Sat, Sep 24, 2016 at 3:23 AM, Thiago Macieira <
> thiago.macieira at intel.com> wrote:
>>
>> run qmake with -d -d switches and look for where that "-g -O2" is coming
>> from.
>
>
> The best I can tell it comes from this line:
> QMAKE_CXXFLAGS = -g -O2 -fdebug-prefix-map=/build/qtba
> se-opensource-src-1gAkgj/qtbase-opensource-src-5.6.1+dfsg=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2
>
> which is located in qmodule.pri (directory is
> /usr/lib/x86_64-linux-gnu/qt5/mkspecs). Which project include is made
> relevant by:
> load(qt_build_config) # loads qmodule.pri if hasn't been loaded already
>
> which I find in qt_module.prf. The latter I load directly in my module's
> project file (at the end).
>

Curiously enough, that line isn't present in the Qt's source for the same
version I have from git. Is it possible it was inserted automatically on
install, or whatever process is used for packaging the binaries for debian?
Or perhaps it was added manually by the maintainer? Very strange.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160924/ce42c804/attachment.html>


More information about the Interest mailing list