Don't reject -L/usr/local/lib when SDKROOT is defined
/usr/local/lib is removed from the default linker search path when SDKROOT is defined or sysroot is specified. Homebrew sometimes sets SDKROOT without setting a sysroot as of 45e138f.
This commit is contained in:
		
							parent
							
								
									c39f0baa21
								
							
						
					
					
						commit
						8f068fdbca
					
				@ -279,7 +279,9 @@ class Cmd
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def system_library_paths
 | 
			
		||||
    %W[#{sysroot}/usr/lib /usr/local/lib]
 | 
			
		||||
    paths = ["#{sysroot}/usr/lib"]
 | 
			
		||||
    paths << "/usr/local/lib" unless sysroot || ENV["SDKROOT"]
 | 
			
		||||
    paths
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def configure?
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user