New sdk uses _linux for vstdlib/tier0
This commit is contained in:
		
							parent
							
								
									8ee6cad7ea
								
							
						
					
					
						commit
						440184e83c
					
				| @ -198,6 +198,15 @@ class SM: | ||||
| 			else: | ||||
| 				staticLibs = os.path.join(sdkPath, 'lib', 'linux') | ||||
| 			workFolder = os.path.join(AMBuild.outputFolder, job.workFolder) | ||||
| 			if sdk == 'l4d2': | ||||
| 				for i in ['tier1_i486.a', 'mathlib_i486.a', 'vstdlib_linux.so', 'tier0_linux.so']: | ||||
| 					link = os.path.join(workFolder, i) | ||||
| 					target = os.path.join(staticLibs, i) | ||||
| 					try: | ||||
| 						os.lstat(link) | ||||
| 					except: | ||||
| 						job.AddCommand(SymlinkCommand(link, target)) | ||||
| 			else: | ||||
| 				for i in ['tier1_i486.a', 'mathlib_i486.a', 'vstdlib_i486.so', 'tier0_i486.so']: | ||||
| 					link = os.path.join(workFolder, i) | ||||
| 					target = os.path.join(staticLibs, i) | ||||
| @ -257,6 +266,10 @@ class SM: | ||||
| 		if not noLink: | ||||
| 			if AMBuild.target['platform'] == 'linux': | ||||
| 				compiler['POSTLINKFLAGS'][0:0] = ['-lm'] | ||||
| 				if sdk == 'l4d2': | ||||
| 					compiler['POSTLINKFLAGS'][0:0] = ['tier0_linux.so'] | ||||
| 					compiler['POSTLINKFLAGS'][0:0] = ['vstdlib_linux.so'] | ||||
| 				else: | ||||
| 					compiler['POSTLINKFLAGS'][0:0] = ['tier0_i486.so'] | ||||
| 					compiler['POSTLINKFLAGS'][0:0] = ['vstdlib_i486.so']				 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user