[Qt-interest] [SOLVED] Compile Qt4-OpenSource with Custom FLAGS
Aaron Lewis
aaron.lewis1989 at gmail.com
Thu Mar 4 08:28:35 CET 2010
Thiago Macieira wrote:
> Em Quinta-feira 4. Março 2010, às 02.15.02, Aaron Lewis escreveu:
>
>> Hi,
>> I was wondering how to set these compiler flags , during compiling of
>> qt4.6.2.
>>
>> qmake is easy , i found Makefile.unix , and add something in it.
>> (It doesn't work when i modify qmake.pro or qmake.pri)
>>
>> I tried to change src/qbase.pri , fails.
>>
>> Any ideas will appreciate.
>>
>
> CFLAGS="something"
> CXXFLAGS="something"
> LDFLAGS="something"
> export CFLAGS CXXFLAGS LDFLAGS
> ./configure [the rest of your switches here]
>
>
Thanks Thiago , but this ain't gonna work for me ..
I tried to modify
qt-everywhere-opensource-src-4.6.2/mkspecs/common/g++.conf ,
Append things like 'QMAKE_CXXFLAGS += -march=core2 -mfpmath=sse -O3' ,
and it works fine ;-)
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Best Regards,
Aaron Lewis - PGP: 0xA476D2E9
irc: A4r0n on freenode
More information about the Qt-interest-old
mailing list