Originally posted by sethgeekx86
I wondering if there is one file i can edit so every time i build something it goes to Athlon XP.
Why not add that CFLAGS variable keefaz posted as an environment variable to your startup script, such as ~/.bashrc.......I use the following entries in my startup script:
CFLAGS='-O2 -march=i586 -mcpu=athlon -pipe'
export CFLAGS CXXFLAGS
The "CXXFLAGS" variable is for C++ binary optimization, "CFLAGS" is for C binary optimization
By doing this, when configuring an app, these variables are usually picked up by automake and added to the Makefile created from the ./configure command.........There are a few exceptions where an app will ignore these evironment variables, but for the most part they will be included automatically.......One app I know that ignores these variables is compiling QT, it uses '-O2 -march=i486 -mcpu=i686', no matter what you try to pass it.......
BTW.....the '-pipe' option is compiler option that tells the compiler it can pipe it's commands while compiling an app......helps speed up compiling
Also, after adding anything to the startup script. be sure to update it by using the 'source' command. For example: