Disable Python Basic Optimization (-o)
On a given embedded Linux machine I have a Python 3.3 distribution installed which seems to have the optimization option -O enabled by default. This has the following effects: .py
Solution 1:
The Python distribution I was using comes with Yocto and basic optimization is activated there by default (Py_OptimizeFlag
is hard coded to 1
rather than 0
).
That version of Python also comes with an extra -N
flag (which is not documented in the usual Python distributions).
So the answer to my question is to either set the -N
command line option or to apply a patch to the Python sources which come with Yocto and recompile (as suggested by Karoly Horvath).
Post a Comment for "Disable Python Basic Optimization (-o)"