I wanted to compile kdelibs with CXXFLAGS="-O1 -march=pentium4 -fvisibility=hidden -fvisibility-inlines-hidden -freorder-blocks -fomit-frame-pointer -frename-registers -falign-loops -fregmove -fcse-follow-jumps -falign-functions", but during compilation process I've noticed that -O2 has been added: -O2 -O1 -march=pentium4 -fvisibility=hidden -fvisibility-inlines-hidden -freorder-blocks -fomit-frame-pointer -frename-registers -falign-loops -fregmove -fcse-follow-jumps -falign-functions Please, filter out that crap - patch Makefiles. Also qt package filtered my flags: "-O1 -freorder-blocks" :(((( Reproducible: Always Steps to Reproduce: 1. 2. 3.
The compiler will only use the latter of the two -O statements, so your -O1 is getting picked up just fine. Otherwise, please provide the patches.
eh?