Hello,
I want to add these compiler flags while compiling:
-O2 -march=$arch -mtune=$cpu
where $arch=i486 and $cpu=i686
How to do this?
Anand
The flags can be modified the best way in src/interface/interface.pro: write:
QMAKE_CXXFLAGS_RELEASE+=-O2 -march=$arch -mtune=$cpu (I am not sure if you can use $arch and $cpu)
or
QMAKE_CXXFLAGS_RELEASE+=-O2 -march=i486 -mtune=i686 (if above does not work).
(http://doc.trolltech.com/4.4/qmake-variable-reference.html#qmake-cxxflags-release)
You don't need to add -O2, it is added for release mode.
I am not sure if you need to add also to fet.pro and src/src.pro.
Then make distclean and qmake and make again.
Please let me know.