Fix linux build.

This commit is contained in:
Asher Baker 2014-11-07 18:07:41 +00:00
parent e4dbe35aa1
commit e727f3baf3

View File

@ -148,6 +148,8 @@ class SM:
#Platform-specifics
if AMBuild.target['platform'] == 'linux':
self.compiler.AddToListVar('CDEFINES', '_LINUX')
self.compiler.AddToListVar('CDEFINES', 'POSIX')
self.compiler.AddToListVar('CDEFINES', 'NO_MALLOC_OVERRIDE')
if self.vendor == 'gcc':
self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc')
if self.vendor == 'clang':