configure: Use the environment variable CC when compiling tcc (resend)
Using the environment CC is a common used feature to select a compiler to build any software, so it should be supported when building tcc. The old way using the parameter --cc still works. (resend) Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
This commit is contained in:
		
							parent
							
								
									0e47167cbe
								
							
						
					
					
						commit
						a4f9e3cf4c
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		
							
								
								
									
										5
									
								
								configure
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								configure
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -27,7 +27,8 @@ mandir=""
 | 
				
			||||||
infodir=""
 | 
					infodir=""
 | 
				
			||||||
sysroot=""
 | 
					sysroot=""
 | 
				
			||||||
cross_prefix=""
 | 
					cross_prefix=""
 | 
				
			||||||
cc="gcc"
 | 
					test -z "$CC" && CC="gcc"
 | 
				
			||||||
 | 
					test -z "$cc" && cc="$CC"
 | 
				
			||||||
ar="ar"
 | 
					ar="ar"
 | 
				
			||||||
bigendian="no"
 | 
					bigendian="no"
 | 
				
			||||||
mingw32="no"
 | 
					mingw32="no"
 | 
				
			||||||
| 
						 | 
					@ -45,7 +46,7 @@ confvars=
 | 
				
			||||||
suggest="yes"
 | 
					suggest="yes"
 | 
				
			||||||
gcc_major=0
 | 
					gcc_major=0
 | 
				
			||||||
gcc_minor=0
 | 
					gcc_minor=0
 | 
				
			||||||
cc_name="gcc"
 | 
					cc_name="$cc"
 | 
				
			||||||
ar_set=
 | 
					ar_set=
 | 
				
			||||||
darwin=
 | 
					darwin=
 | 
				
			||||||
cpu=
 | 
					cpu=
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue