I have tried to optimize the speed for mysql and Firebird but for the moment
it seems for that particular query there is no difference (io starved) , maybe i need some queries with math calculations to see the benefit for thouse flags
On the firebird side seems that CXX flags are not considered at all and i will inspect why
Here are my flags anyway
The good news is that at least make -j2 should work for firebird HEAD
Update: seems that it works if I export only the CXXFLAGS
export CXXFLAGS="-O3 -march=core2 -mtune=core2 -mfpmath=sse"