From cb8be939714e19d4fe154798f953ad52c25dc1f8 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sat, 30 Apr 2011 23:29:49 -0500 Subject: [PATCH] Hopefully fixed clang builds. --- AMBuildScript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index 4fe86cf..6461e73 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -100,8 +100,6 @@ class MMS: self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H') if self.vendor == 'gcc': self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse') - else: - self.compiler.AddToListVar('POSTLINKFLAGS', '-lgcc_eh') elif isinstance(cxx, Cpp.MSVC): self.vendor = 'msvc' if AMBuild.options.debug == '1': @@ -157,7 +155,10 @@ class MMS: #Platform-specifics if AMBuild.target['platform'] == 'linux': self.compiler.AddToListVar('CDEFINES', '_LINUX') - self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc') + 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': self.compiler.AddToListVar('CFLAGS', ['-isysroot', '/Developer/SDKs/MacOSX10.5.sdk'])