diff -r eeea4ed7c45d -r 2e5621faba48 AMBuildScript --- a/AMBuildScript Sat Apr 30 23:29:49 2011 -0500 +++ b/AMBuildScript Fri Jun 17 18:00:32 2011 -0500 @@ -97,7 +97,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': @@ -153,6 +152,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':