# HG changeset patch # User Scott Ehlert # Date 1308351632 18000 # Node ID 89b6aa6e9d3791d97df17c098991f766f6dd26c5 # Parent ea7a39d638f229017e71aa890142b76036ad314a 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 diff -r ea7a39d638f2 -r 89b6aa6e9d37 AMBuildScript --- a/AMBuildScript Thu Jun 16 15:59:27 2011 -0400 +++ b/AMBuildScript Fri Jun 17 18:00:32 2011 -0500 @@ -99,7 +99,6 @@ self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H') if self.vendor == 'gcc': self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse') - self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc') elif isinstance(cxx, Cpp.MSVC): self.vendor = 'msvc' if AMBuild.options.debug == '1': @@ -155,6 +154,8 @@ #Platform-specifics if AMBuild.target['platform'] == 'linux': self.compiler.AddToListVar('CDEFINES', '_LINUX') + if self.vendor == 'gcc': + self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc') if self.vendor == 'clang': self.compiler.AddToListVar('POSTLINKFLAGS', '-lgcc_eh') elif AMBuild.target['platform'] == 'darwin':