I'm testing a suitesparse upgrade right now and noticed this: Building CXX object ... -O2 -pipe -march=native -O0 -fopenmp -O3 My CXXFLAGS are "-O2 -pipe -march=native -O0" (I appended the -O0 to speed up the build), but since the -O3 comes after, it's being ignored.
The trilinos build system has the bad habit of hard coding the "-O3" optimization flag in quite a number of places.