diff -r 28726962259e -r 7c8bf140de6b AMBuildScript --- a/AMBuildScript Wed Mar 21 21:27:26 2012 -0500 +++ b/AMBuildScript Wed Mar 21 21:35:07 2012 -0500 @@ -122,6 +122,9 @@ self.compiler.AddToListVar('CXXFLAGS', '-fno-threadsafe-statics') self.compiler.AddToListVar('CXXFLAGS', '-Wno-non-virtual-dtor') self.compiler.AddToListVar('CXXFLAGS', '-Wno-overloaded-virtual') + if (self.vendor == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 3) or \ + (self.vendor == 'clang' and cxx.majorVersion >= 3): + self.compiler.AddToListVar('CXXFLAGS', '-Wno-delete-non-virtual-dtor') self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H') self.compiler.AddToListVar('CDEFINES', 'GNUC') if self.vendor == 'gcc':