AMBuildScript
changeset 752 eeea4ed7c45d
parent 750 506985824237
child 753 2e5621faba48
     1.1 --- a/AMBuildScript	Sat Apr 30 22:42:40 2011 -0500
     1.2 +++ b/AMBuildScript	Sat Apr 30 23:29:49 2011 -0500
     1.3 @@ -98,8 +98,6 @@
     1.4  				if self.vendor == 'gcc':
     1.5  					self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse')
     1.6  					self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc')
     1.7 -				else:
     1.8 -					self.compiler.AddToListVar('POSTLINKFLAGS', '-lgcc_eh')
     1.9  			elif isinstance(cxx, Cpp.MSVC):
    1.10  				self.vendor = 'msvc'
    1.11  				if AMBuild.options.debug == '1':
    1.12 @@ -155,6 +153,8 @@
    1.13  			#Platform-specifics
    1.14  			if AMBuild.target['platform'] == 'linux':
    1.15  				self.compiler.AddToListVar('CDEFINES', '_LINUX')
    1.16 +				if self.vendor == 'clang':
    1.17 +					self.compiler.AddToListVar('POSTLINKFLAGS', '-lgcc_eh')
    1.18  			elif AMBuild.target['platform'] == 'darwin':
    1.19  				self.compiler.AddToListVar('CFLAGS', ['-isysroot',
    1.20  				                                      '/Developer/SDKs/MacOSX10.5.sdk'])