Fixed compiler and linker flags for darwin (r=dvander).

The previous commit by 'me' was a fake atrocity created by dvander. :o
This commit is contained in:
Scott Ehlert 2010-05-11 02:36:03 -05:00
parent 2a77dfbcd2
commit f06af54165

View File

@ -141,9 +141,9 @@ class SM:
if AMBuild.target['platform'] == 'linux':
self.compiler.AddToListVar('CDEFINES', '_LINUX')
elif AMBuild.target['platform'] == 'darwin':
self.compiler.AddToListVar('CFLAGS', '-mmacosx-version-min=10.5')
self.compiler.AddToListVar('POSTLINKFLAGS', ['-isysroot',
'/Developer/SDKs/MacOSX10.5.sdk'])
self.compiler.AddToListVar('CFLAGS', ['-isysroot',
'/Developer/SDKs/MacOSX10.5.sdk'])
self.compiler.AddToListVar('POSTLINKFLAGS', '-mmacosx-version-min=10.5')
self.compiler.AddToListVar('POSTLINKFLAGS', ['-arch', 'i386'])
elif AMBuild.target['platform'] == 'windows':
self.compiler.AddToListVar('CDEFINES', 'WIN32')