Optimizations go on the CFLAGS/CXXFLAGS lines. BTW, -fomit-frame-pointer frees up an extra register, which gives the processor more room to play with numbers without having to touch the RAM. This gives many apps a big performance increase.