mattshma/py-radix

Compiler flags need to be updated for MAC

GoogleCodeExporter opened this issue · 0 comments

What steps will reproduce the problem?
1. Run: 'sudo python setup.py build install'
2. You'll see: radix.c:675: fatal error: error writing to -: Broken pipe

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
py-radix version: 0.5
MAC OSX 10.6.7

Please provide any additional information below.
This is not a bug with py-radix, but with OSX.  Thought I'd post it to save 
someone the hour of searching to find the solution (maybe add to readme?). 

It has to do with Apple trying to keep backwards compatibility with PPC.  
However, this breaks ARCHFLAGS...

You can fix by running:

sudo ARCHFLAGS="-arch i386 -arch x86_64" python setup.py build

Original issue reported on code.google.com by jwoodbri...@gmail.com on 12 Jul 2011 at 4:32