Improve musl and uclibc detection
Do not enable musl or uclibc native support if a GNU linker is already present. This avoids interference for example on a Debian platform with musl-dev installed. More work is required to select musl libc in that case, with additional configure flags.
This commit is contained in:
		
							parent
							
								
									70fca7f799
								
							
						
					
					
						commit
						1094891e67
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		
							
								
								
									
										9
									
								
								configure
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								configure
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -359,7 +359,14 @@ if test -z "$cross_prefix" ; then
 | 
			
		|||
	fi
 | 
			
		||||
      fi
 | 
			
		||||
 | 
			
		||||
      if test -f "/lib/ld-uClibc.so.0" ; then
 | 
			
		||||
      # Enable uClibc or musl native support only if GNU ld is not already present
 | 
			
		||||
      if test -f "/lib/ld-linux.so.2"; then
 | 
			
		||||
	:
 | 
			
		||||
      elif test -f "/lib64/ld-linux-x86-64.so.2"; then
 | 
			
		||||
        :
 | 
			
		||||
      elif test -f "/lib64/ld-linux-aarch64.so.1"; then
 | 
			
		||||
        :
 | 
			
		||||
      elif test -f "/lib/ld-uClibc.so.0" ; then
 | 
			
		||||
	confvars="$confvars uClibc"
 | 
			
		||||
      elif test -f "/lib/ld-musl-$cpu.so.1"; then
 | 
			
		||||
        confvars="$confvars musl"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue