GCC specifies that the last option takes effect on the command line. Its common practice to append CFLAGS to override earlier ones. So gcc -O3 -O2 -O0 source.c compiles without optimization.
On Saturday, September 22, 2012 11:29:07 AM UTC+1, P Purkayastha wrote: > > Hi, > Is there any way to change or remove all the compilation flags provided > to gcc while compiling cython code in Sage? Currently, I have a setup.py > file and I am running > sage -python setup.py build_ext --inplace > to compile cython code. > > I tried providing custom CFLAGS, like CFLAGS="-O0", but it seems to only > get appended to the gcc command. I also tried exporting OPTS="" (found this > advice for python in a stackoverflow thread) but that doesn't seem to help. > Also tried the above in a "sage -sh" environment and then calling python > directly. > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support?hl=en.
