# HG changeset patch # User Nicholas Hastings # Date 1308366416 14400 # Node ID 87f64d655956da8c9f2cc29a902a4df5a8dc389b # Parent faf5bb648f04cd191850fcb7c391ce60cdc122bf# Parent 2e5621faba480f94754f22ff894fbc05f181588f Merge. diff -r faf5bb648f04 -r 87f64d655956 AMBuildScript --- a/AMBuildScript Fri Jun 17 23:03:23 2011 -0400 +++ b/AMBuildScript Fri Jun 17 23:06:56 2011 -0400 @@ -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':