| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -13,20 +13,23 @@ common_src = [ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  "transforms/transform.cc" | 
					 | 
					 | 
					 | 
					  "transforms/transform.cc" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					] | 
					 | 
					 | 
					 | 
					] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					thneed_src = [ | 
					 | 
					 | 
					 | 
					thneed_src_common = [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  "thneed/thneed_common.cc", | 
					 | 
					 | 
					 | 
					  "thneed/thneed_common.cc", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  "thneed/thneed_qcom2.cc", | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  "thneed/serialize.cc", | 
					 | 
					 | 
					 | 
					  "thneed/serialize.cc", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  "runners/thneedmodel.cc", | 
					 | 
					 | 
					 | 
					  "runners/thneedmodel.cc", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					] | 
					 | 
					 | 
					 | 
					] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					thneed_src_qcom = thneed_src_common + ["thneed/thneed_qcom2.cc"] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					thneed_src_pc = thneed_src_common + ["thneed/thneed_pc.cc"] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					thneed_src = thneed_src_qcom if arch == "larch64" else thneed_src_pc | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					use_thneed = not GetOption('no_thneed') | 
					 | 
					 | 
					 | 
					use_thneed = not GetOption('no_thneed') | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					if arch == "larch64": | 
					 | 
					 | 
					 | 
					if arch == "larch64": | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  libs += ['gsl', 'CB', 'pthread', 'dl'] | 
					 | 
					 | 
					 | 
					  libs += ['gsl', 'CB', 'pthread', 'dl'] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  if use_thneed: | 
					 | 
					 | 
					 | 
					  if use_thneed: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    common_src += thneed_src | 
					 | 
					 | 
					 | 
					    common_src += thneed_src_qcom | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    lenv['CXXFLAGS'].append("-DUSE_THNEED") | 
					 | 
					 | 
					 | 
					    lenv['CXXFLAGS'].append("-DUSE_THNEED") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					else: | 
					 | 
					 | 
					 | 
					else: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  libs += ['pthread'] | 
					 | 
					 | 
					 | 
					  libs += ['pthread'] | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -80,15 +83,9 @@ if (use_thneed and arch == "larch64") or GetOption('pc_thneed'): | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					llenv = lenv.Clone() | 
					 | 
					 | 
					 | 
					llenv = lenv.Clone() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					if GetOption('pc_thneed'): | 
					 | 
					 | 
					 | 
					if GetOption('pc_thneed'): | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  pc_thneed_src = [ | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    "thneed/thneed_common.cc", | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    "thneed/thneed_pc.cc", | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    "thneed/serialize.cc", | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    "runners/thneedmodel.cc", | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ] | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  llenv['CFLAGS'].append("-DUSE_THNEED") | 
					 | 
					 | 
					 | 
					  llenv['CFLAGS'].append("-DUSE_THNEED") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  llenv['CXXFLAGS'].append("-DUSE_THNEED") | 
					 | 
					 | 
					 | 
					  llenv['CXXFLAGS'].append("-DUSE_THNEED") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  common_model += llenv.Object(pc_thneed_src) | 
					 | 
					 | 
					 | 
					  common_model += llenv.Object(thneed_src_pc) | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  libs += ['dl'] | 
					 | 
					 | 
					 | 
					  libs += ['dl'] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					llenv.Program('_modeld', [ | 
					 | 
					 | 
					 | 
					llenv.Program('_modeld', [ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |