AMBuildScript
changeset 92 e3974e7360e9
parent 91 5f4402180204
child 93 23189d937087
     1.1 --- a/AMBuildScript	Wed Jul 25 00:48:08 2012 -0700
     1.2 +++ b/AMBuildScript	Wed Jul 25 01:30:33 2012 -0700
     1.3 @@ -54,11 +54,14 @@
     1.4  				self.compiler.AddToListVar('CXXFLAGS', '-Wno-invalid-offsetof')
     1.5  
     1.6  				# This would otherwise forbid ((x = y) == NULL) in clang apparently.
     1.7 -				self.compiler.AddToListVar('CXXFLAGS', '-Wno-null-arithmetic')
     1.8 +				if self.vendor == 'clang':
     1.9 +					self.compiler.AddToListVar('CXXFLAGS', '-Wno-null-arithmetic')
    1.10  
    1.11  				if (self.vendor == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 7) or \
    1.12  						(self.vendor == 'clang' and cxx.majorVersion >= 3):
    1.13  					self.compiler.AddToListVar('CXXFLAGS', '-Wno-delete-non-virtual-dtor')
    1.14 +
    1.15 +				self.compiler.AddToListVar('POSTLINKFLAGS', '-lm')
    1.16  			elif isinstance(cxx, Cpp.MSVC):
    1.17  				self.vendor = 'msvc'
    1.18  				if AMBuild.options.debug == '1':