Command line usage for all configure scripts:
cd /usr/bin
rm cc gcc c++ g++
ln -s gcc-4.2 cc
ln -s gcc-4.2 gcc
ln -s c++-4.2 c++
ln -s g++-4.2 g++
Make a record of the current link targets, so you can restore them if you want to.
If you don't want to change the system wide settings, add a directory into PATH before /usr/bin (say, $HOME/bin
), and make the symlinks there
I haven't tested whether this affects Xcode projects, since I don't use Xcode (only command line).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…