From 33964defd71d1c6f80802620961237716be7991d 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index 924ec95..953fe9b 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -98,8 +98,6 @@ class MMS: if self.vendor == 'gcc': self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse') self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc') - else: - self.compiler.AddToListVar('POSTLINKFLAGS', '-lgcc_eh') elif isinstance(cxx, Cpp.MSVC): self.vendor = 'msvc' if AMBuild.options.debug == '1': @@ -155,6 +153,8 @@ class MMS: #Platform-specifics if AMBuild.target['platform'] == 'linux': self.compiler.AddToListVar('CDEFINES', '_LINUX') + 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'])