disable rpaths on Darwin when arg=-r mode=ccld (#3930)
This fixes build of Ipopt package.
This commit is contained in:
		
				
					committed by
					
						
						Todd Gamblin
					
				
			
			
				
	
			
			
			
						parent
						
							4421013290
						
					
				
				
					commit
					c7a5b2eaa9
				
			
							
								
								
									
										2
									
								
								lib/spack/env/cc
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								lib/spack/env/cc
									
									
									
									
										vendored
									
									
								
							@@ -218,7 +218,7 @@ fi
 | 
			
		||||
add_rpaths=true
 | 
			
		||||
if [[ ($mode == ld || $mode == ccld) && "$SPACK_SHORT_SPEC" =~ "darwin" ]]; then
 | 
			
		||||
    for arg in "$@"; do
 | 
			
		||||
        if [[ ($arg == -r && $mode == ld) || ($arg == -Wl,-r && $mode == ccld) ]]; then
 | 
			
		||||
        if [[ ($arg == -r && $mode == ld) || ($arg == -r && $mode == ccld) || ($arg == -Wl,-r && $mode == ccld) ]]; then
 | 
			
		||||
            add_rpaths=false
 | 
			
		||||
            break
 | 
			
		||||
        fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user