Change the /usr/bin/gcc symlink to point to your preferred gcc (such as /usr/bin/gcc-4.1 for me) to change globally (at least that's how it works in debian). Or, whenever you make, run it as
Code:
$ CC=/usr/bin/gcc-4.1 make <target>
assuming that the makefile referers to CC and not cc or gcc. You probably need to supply arguments for CXX, CPP and other bits (see the Make manual).