Set GCC version for make in shell
<p>I have two gcc (same applies to g++) versions installed. The newer one is the default one:</p>

<pre><code>/usr/bin/gcc      # 4.9.2
/usr/bin/gcc-4.4  # 4.4.7
</code></pre>

<p>For my make command I want to use gcc-4.4 / g++-4.4. </p>

<p>I've tried these three variantes but none seems to work:</p>

<pre><code>export CC="gcc-4.4"
export CPP="g++-4.4"

export CC=/usr/bin/gcc-4.4
export CPP=/usr/bin/g++-4.4

export gcc=/usr/bin/gcc-4.4
export g++=/usr/bin/g++-4.4
</code></pre>

<p>The Makefile defines:</p>

<pre><code># Compiler Options
CC       = gcc
CPP      = g++
LD       = g++
</code></pre>

<p>The compiler used by the Makefile is still 4.9.2. How can I use 4.4.7?</p>