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'])