Swig-generated files do some type punning that the gcc compiler will complain about when optimizing. This has been partially taken care of with fixCFlagsForSwig function in SConstruct. However, there are two remaining problems: 1- The function sets -fno-strict-aliasing only on CCFLAGS, whereas swig is generating c++ code. It should be setting CXXFLAGS (both?). 2- The python wrapper environment is not passed through this function. -- Felipe Sateler