diff -r 5f4402180204 -r e3974e7360e9 AMBuildScript --- a/AMBuildScript Wed Jul 25 00:48:08 2012 -0700 +++ b/AMBuildScript Wed Jul 25 01:30:33 2012 -0700 @@ -54,11 +54,14 @@ self.compiler.AddToListVar('CXXFLAGS', '-Wno-invalid-offsetof') # This would otherwise forbid ((x = y) == NULL) in clang apparently. - self.compiler.AddToListVar('CXXFLAGS', '-Wno-null-arithmetic') + if self.vendor == 'clang': + self.compiler.AddToListVar('CXXFLAGS', '-Wno-null-arithmetic') if (self.vendor == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 7) or \ (self.vendor == 'clang' and cxx.majorVersion >= 3): self.compiler.AddToListVar('CXXFLAGS', '-Wno-delete-non-virtual-dtor') + + self.compiler.AddToListVar('POSTLINKFLAGS', '-lm') elif isinstance(cxx, Cpp.MSVC): self.vendor = 'msvc' if AMBuild.options.debug == '1':