title: which gcc am I using?
body: <p>I am attempting to compile a package on my Mac laptop and my Mac Mini desktop. It compiles successfully on the laptop, but not the mini (gives the following error: <code>gcc: error: unrecognized command line option '-Xarch_x86_64'</code>). Both machines are running OS X Yosemite (10.10.2). On both machines, when I type</p>
  <pre><code>which gcc
  </code></pre>
  <p>I get:</p>
  <blockquote>
  <p>gcc: aliased to nocorrect gcc</p>
  </blockquote>
  <p>(I don't know what this means) When I type</p>
  <pre><code>echo $PATH
  </code></pre>
  <p>I get:</p>
  <blockquote>
  <p>/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin</p>
  </blockquote>
  <p>This makes me think that if a gcc is found in /usr/local/bin, that's the one that will be my gcc. When I type</p>
  <pre><code>ls -l /usr/local/bin/gcc
  </code></pre>
  <p>I get:</p>
  <blockquote>
  <p>/usr/local/bin/gcc -&gt; /usr/local/bin/gcc-4.8</p>
  </blockquote>
  <p>on both machines. However, when I type</p>
  <pre><code>gcc --version
  </code></pre>
  <p>on the Mini I get:</p>
  <blockquote>
  <p>gcc (Homebrew gcc48 4.8.4) 4.8.4</p>
  <p>Copyright (C) 2013 Free Software Foundation, Inc.</p>
  <p>This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p>
  </blockquote>
  <p>and on the laptop I get:</p>
  <blockquote>
  <p>Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1</p>
  <p>Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)</p>
  <p>Target: x86_64-apple-darwin14.1.0</p>
  <p>Thread model: posix</p>
  </blockquote>
  <p>Which is the version installed by XCode. (This is what I get on both machines from <code>/usr/bin/gcc --version</code>)</p>
  <p>How is the laptop using gcc 4.2 when the first gcc in my path is a symlink to gcc 4.8, and how do I make the mini do the same?</p>