Quote:
|
Originally Posted by matsko
Ok, but for compiling something from source, not rpm source, does fedora core already compile using that option by default?
|
most source build systems do already incorporate -O2 as default
some packages even use -O3 as default.
i doubt if fedora changes the CFLAGS/CXXFLAGS away from what they are set to by the package developers
one of the most interesting gcc flags is -march
it allows gcc to create code for your processors specific modern instruction set.
otherwise you are by default using an instruction set for processors made 25 years ago.
-march for obvious reasons can't be included by default in generic distributions
also when you set CFLAGS or for c++ code CXXFLAGS as a shell variable the values are added usually in addition to other flags needed by the package.