title: Why is GCC ignoring ARCHFLAGS in Snow Leopard?
body: <p>I'm trying to install <a href="http://pypi.python.org/pypi/AmFast/0.5.2-r532" rel="noreferrer">AMFAST</a> in a <a href="http://pypi.python.org/pypi/virtualenv" rel="noreferrer">virtual_env</a> location based on a dependencies file. I have <code>export ARCHFLAGS="-arch x86_64"</code> in my local .profile, and have confirmed its presence by running <code>env</code> and seeing it listed. However, whenever I run PIP targeting the virtual environment, gcc is set to target i386 and ppc.  I've also tried prepending <code>env ARCHFLAGS="-arch i386 -arch x86_64"</code> and <code>env ARCHFLAGS="-arch x86_64"</code> to the PIP command, but gcc always has the flags <code>-arch i386 -arch ppc -arch x86_64</code>. How can I get gcc to read my archflags?</p>
  
  <p>example:  </p>
  
  <pre><code>sudo pip install -E ~/Documents/project/project_env -r ~/Documents/project/trunk/django/dependencies.txt`  
  </code></pre>
  
  <p><em>output</em><br>
  ...  </p>
  
  <pre><code>Running setup.py install for amfast  
    building 'amfast.encode' extension  
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c amfast/ext_src/encoder.c -o build/temp.macosx-10.6-universal-2.6/amfast/ext_src/encoder.o
    /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
    Installed assemblers are:
    /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
    /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
    amfast/ext_src/encoder.c:2121: fatal error: error writing to -: Broken pipe
    compilation terminated.
    lipo: can't open input file: /var/tmp//ccoYlfhN.out (No such file or directory)
    error: command 'gcc-4.2' failed with exit status 1
  </code></pre>