On 02/10/2013 11:58 AM, Dag Sverre Seljebotn wrote: > On 02/10/2013 03:36 AM, Neal Becker wrote: >> Is there a way to add '-march=native' flag to gcc for the build? > > I think something along these lines should work (untested): > > CFLAGS="$(python-config --cflags) -march=native" python setup.py install
Actually I retract this -- it's what I once did for a Cython project, but numpy.distutils is doing so much in addition I can't be sure at all. (Until somebody gives the correct answer, you could also try to set the "OPT" environment variable.) Dag Sverre _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion