From 804f44b1363857c6b597e82aaab0058532e3f3fa Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Wed, 21 Mar 2012 20:48:34 -0500 Subject: [PATCH] Fixed Linux build. --- AMBuildScript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index d553e65..2987169 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -118,7 +118,9 @@ class MMS: self.compiler.AddToListVar('CXXFLAGS', '-fno-threadsafe-statics') self.compiler.AddToListVar('CXXFLAGS', '-Wno-non-virtual-dtor') self.compiler.AddToListVar('CXXFLAGS', '-Wno-overloaded-virtual') - self.compiler.AddToListVar('CXXFLAGS', '-Wno-delete-non-virtual-dtor') + 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') if self.vendor == 'gcc': self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse')