Fixed compiler and linker flags for darwin (r=dvander).
authorScott Ehlert <ds@alliedmods.net>
Tue May 11 02:36:03 2010 -0500 (2010-05-11)
changeset 2981392a0b46351f
parent 2980 fddc25c39462
child 2982 70d280fed21e
Fixed compiler and linker flags for darwin (r=dvander).

The previous commit by 'me' was a fake atrocity created by dvander. :o
AMBuildScript
     1.1 --- a/AMBuildScript	Tue May 11 00:16:52 2010 -0700
     1.2 +++ b/AMBuildScript	Tue May 11 02:36:03 2010 -0500
     1.3 @@ -141,9 +141,9 @@
     1.4  			if AMBuild.target['platform'] == 'linux':
     1.5  				self.compiler.AddToListVar('CDEFINES', '_LINUX')
     1.6  			elif AMBuild.target['platform'] == 'darwin':
     1.7 -				self.compiler.AddToListVar('CFLAGS', '-mmacosx-version-min=10.5')
     1.8 -				self.compiler.AddToListVar('POSTLINKFLAGS', ['-isysroot',
     1.9 -				                                             '/Developer/SDKs/MacOSX10.5.sdk'])
    1.10 +				self.compiler.AddToListVar('CFLAGS', ['-isysroot',
    1.11 +				                                      '/Developer/SDKs/MacOSX10.5.sdk'])
    1.12 +				self.compiler.AddToListVar('POSTLINKFLAGS', '-mmacosx-version-min=10.5')
    1.13  				self.compiler.AddToListVar('POSTLINKFLAGS', ['-arch', 'i386'])
    1.14  			elif AMBuild.target['platform'] == 'windows':
    1.15  				self.compiler.AddToListVar('CDEFINES', 'WIN32')