title: OSX Lion: export CC for rvm and homebrew enough? What about CXX, CPP, CXXPP
body: <p>As I had major troubles installing ruby 1.8.7 on OSX Lion I did like it was proposed i.e. in one answer to <a href="https://stackoverflow.com/questions/6170813/why-cant-i-install-rails-on-lion-using-rvm">Why can&#39;t I install Rails on Lion using RVM?</a> and set my CC environment variable. I also used <a href="https://github.com/kennethreitz/osx-gcc-installer" rel="nofollow noreferrer">https://github.com/kennethreitz/osx-gcc-installer</a> to get the non-LLVM gcc.
  I read that there could be problems with brews also, and gcc_select doesn't seem to be available anymore, so I decided to put this into my .zshrc:</p>
  
  <pre><code># Lion ships with llvm-gcc-4.2 as default compiler, fix that as it breaks rubies and brews
  export CC=/usr/bin/gcc-4.2
  export CXX=/usr/bin/g++-4.2  
  </code></pre>
  
  <p>Now I'm wondering if there are other variables I should set, like CPP, CXXPP, LD, you name it. I'm not a gcc expert so could anyone lighten me up? What's the best practice here? I don't want to compile everything again so I figured I better ask :-)</p>