From 13c20f694031991f8048f685a7497e19040921b3 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 17 Jun 2011 18:00:32 -0500 Subject: [PATCH] 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index 953fe9b..9b3578e 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -97,7 +97,6 @@ class MMS: 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 @@ class MMS: #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':