switch back to clang after installing gcc through Macports on Mavericks After I installed Macports (and after that I have installed several versions of gcc through Macports), whenever I type gcc, one of those gcc installed through Macports will be invoked. 

Before I installed Macports, whenever I type gcc, clang that comes with XCode will be invoked. (not sure this is true)

Now I need to compile a 3rd-party package with clang, but I don't know how I should do.

My question is: now that Macports (w gcc48) has been installed, what should I do to switch back to the setting where gcc is linked to clang that comes with XCode?
If you want to avoid uninstalling or changing your PATH. Just run:

sudo port select --set gcc none


…and to re-enable it you run:

sudo port select --set gcc gcc5