Added -lpthread to core GCC link flags.

This commit is contained in:
David Anderson 2009-08-30 17:26:36 -07:00
parent bb681c9c69
commit 0b407a19f1

View File

@ -7,6 +7,8 @@ for i in SM.sdkInfo:
compiler = SM.DefaultHL2Compiler('core', i)
compiler['CDEFINES'].append('SM_DEFAULT_THREADER')
if AMBuild.target['platform'] == 'linux':
compiler['POSTLINKFLAGS'].append('-lpthread')
extension = AMBuild.AddJob(name)
binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)