AMBuildScript
changeset 3297 89b6aa6e9d37
parent 3280 7aea1316eff7
child 3361 cafdb4df0e3f
     1.1 --- a/AMBuildScript	Thu Jun 16 15:59:27 2011 -0400
     1.2 +++ b/AMBuildScript	Fri Jun 17 18:00:32 2011 -0500
     1.3 @@ -99,7 +99,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 @@ -155,6 +154,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':