Handle ARM triples without an endianness suffix
Alpine seems to use this, and it results in a wrong builtins.currentSystem. Big-endian ARM systems have triples starting with armv6eb- or armv7eb-, so this doesn't change any systems that already worked.
This commit is contained in:
		
							parent
							
								
									674c5ff64f
								
							
						
					
					
						commit
						c6beaf5708
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -16,6 +16,8 @@ AC_ARG_WITH(system, AC_HELP_STRING([--with-system=SYSTEM],
 | 
				
			||||||
        machine_name="i686";;
 | 
					        machine_name="i686";;
 | 
				
			||||||
     amd64)
 | 
					     amd64)
 | 
				
			||||||
        machine_name="x86_64";;
 | 
					        machine_name="x86_64";;
 | 
				
			||||||
 | 
					     armv6|armv7)
 | 
				
			||||||
 | 
					        machine_name="${host_cpu}l";;
 | 
				
			||||||
     *)
 | 
					     *)
 | 
				
			||||||
        machine_name="$host_cpu";;
 | 
					        machine_name="$host_cpu";;
 | 
				
			||||||
   esac
 | 
					   esac
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue