1
The swig generated files do not respect strict aliasing. Add flag to avoid
3
Index: csound-5.08.0.dfsg2/SConstruct
4
===================================================================
5
--- csound-5.08.0.dfsg2.orig/SConstruct 2008-05-09 22:05:36.000000000 -0400
6
+++ csound-5.08.0.dfsg2/SConstruct 2008-05-09 22:06:02.000000000 -0400
9
# work around non-ANSI type punning in SWIG generated wrapper files
10
env['CCFLAGS'].append('-fno-strict-aliasing')
11
+ env['CXXFLAGS'].append('-fno-strict-aliasing')
13
def makePythonModule(env, targetName, srcs):
14
if getPlatform() == 'darwin':
16
csoundInterfacesEnvironment.Prepend(LIBS = pythonLibs)
17
csoundInterfacesEnvironment.Append(CPPPATH = pythonIncludePath)
18
csndPythonEnvironment = csoundInterfacesEnvironment.Copy()
19
+ fixCFlagsForSwig(csndPythonEnvironment)
20
if getPlatform() == 'darwin':
21
if commonEnvironment['dynamicCsoundLibrary'] == '1':
22
csndPythonEnvironment.Append(LIBS = ['_csnd'])