title: Changing default C compiler in Linux, using SCons
body: <p>On my Linux platform, I have several versions of <code>gcc</code>.</p>
  
  <p>Under <code>usr/bin</code> I have:</p>
  
  <ul>
  <li><code>gcc34</code></li>
  <li><code>gcc44</code></li>
  <li><code>gcc</code></li>
  </ul>
  
  <p>Here are some outputs:</p>
  
  <pre><code>$ gcc --version
  gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
  
  $ gcc44 --version
  gcc44 (GCC) 4.4.0 20090514 (Red Hat 4.4.0-6)
  </code></pre>
  
  <p>I need to use the 4.4 version of <code>gcc</code> however the default seems to the 4.1 one.</p>
  
  <p>I there a way to replace <code>/usr/bin/gcc</code> and make <code>gcc44</code> the <em>default</em> compiler <strong>not using a symlink</strong> to <code>/usr/bin/gcc44</code> ?</p>
  
  <p>The reason why I can't use a symlink is because my code will have to be shipped in a RPM package using <code>mock</code>. <code>mock</code> creates a minimal linux installation from scratch and just install the specified dependencies before compiling my code in it. I cannot customize this "minimal installation".</p>
  
  <p>Ideally, the perfect solution would be to install an official RPM package that replaces <code>gcc</code> with <code>gcc44</code> as the <em>default</em> compiler. Is there such a package ? Is this even possible/good ?</p>
  
  <h3>Additional information</h3>
  
  <p>I have to use <a href="http://www.scons.org/" rel="nofollow noreferrer">SCons</a> (a <code>make</code> alternative) and <strong>it doesn't</strong> let me specify the binary to use for <code>gcc</code>.</p>
  
  <p>I will also accept any answer that will tell me how to specify the <code>gcc</code> binary in my <code>SConstruct</code> file.</p>