AMBuildScript
changeset 755 87f64d655956
parent 753 2e5621faba48
child 763 e5a02b89021c
     1.1 --- a/AMBuildScript	Fri Jun 17 23:03:23 2011 -0400
     1.2 +++ b/AMBuildScript	Fri Jun 17 23:06:56 2011 -0400
     1.3 @@ -97,7 +97,6 @@
     1.4  				self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H')
     1.5  				if self.vendor == 'gcc':
     1.6  					self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse')
     1.7 -					self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc')
     1.8  			elif isinstance(cxx, Cpp.MSVC):
     1.9  				self.vendor = 'msvc'
    1.10  				if AMBuild.options.debug == '1':
    1.11 @@ -153,6 +152,8 @@
    1.12  			#Platform-specifics
    1.13  			if AMBuild.target['platform'] == 'linux':
    1.14  				self.compiler.AddToListVar('CDEFINES', '_LINUX')
    1.15 +				if self.vendor == 'gcc':
    1.16 +					self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc')
    1.17  				if self.vendor == 'clang':
    1.18  					self.compiler.AddToListVar('POSTLINKFLAGS', '-lgcc_eh')
    1.19  			elif AMBuild.target['platform'] == 'darwin':