hi,
go yo the manual for your version of gcc
gcc-v
here
http://gcc.gnu.org/onlinedocs/
look under
Hardware Models and Configurations -> Intel 386 and AMD x86-64 Options
there you will find the proper setting
for the modern compilers the proper setting for centrino is
-march=pentium-m
or
-mtune=pentium-m
all the older settings from pentium3 down to i386 will run on the centrino
centrino is a small pentium3 so code compiled for pentium4 and above wont work
you don't need -mcpu is old and does nothing now
so hack that script and put
SLKCFLAGS="-O2 -march=pentium-m"
or if you want to be brave
SLKCFLAGS="-O3 -march=pentium-m"
and forget about it using those arch readings from the kernel
for packages that don't use SLKFLAGS put this in your ~/.bashrc
export CFLAGS='-O2 -march=pentium-m'
export CXXFLAGS=$CFLAGS
first time before you log in with the new file you can read it in with
source ~/.bashrc
it will get read automatically later and most packages will pick up the values
if something doesn't work bacause of the optimizations
unset CFLAGS
unset CXXFLAGS
and then do the configure again and you will get default optimizations