How about "s/\bCC\s*=/CC=gcc/" instead of "s/CC\s*=/CC=gcc/" just in case?