Removed -static-libgcc for Mac OS X build (no bug, r=dvander).
authorScott Ehlert <ds@alliedmods.net>
Fri Jun 17 18:00:32 2011 -0500 (2011-06-17)
changeset 329789b6aa6e9d37
parent 3296 ea7a39d638f2
child 3298 56271f784b52
Removed -static-libgcc for Mac OS X build (no bug, r=dvander).

This fixes the ld warning: could not create compact unwind for __Unwind_Resume: non-standard register 0 being saved in prolog
AMBuildScript
     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':