don't pass -Y at all to the linker on illumos
the illumos linker can't understand the "-Y/lib"... form that f_check generates, and -Wl cannot pass options that include commas
This commit is contained in:
		
							parent
							
								
									8d85be770d
								
							
						
					
					
						commit
						d6afac9624
					
				
							
								
								
									
										5
									
								
								f_check
								
								
								
								
							
							
						
						
									
										5
									
								
								f_check
								
								
								
								
							| 
						 | 
					@ -1,5 +1,7 @@
 | 
				
			||||||
#!/usr/bin/perl
 | 
					#!/usr/bin/perl
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$hostos   = `uname -s | sed -e s/\-.*//`;    chop($hostos);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# 1. Not specified
 | 
					# 1. Not specified
 | 
				
			||||||
#   1.1 Automatically detect, then check compiler
 | 
					#   1.1 Automatically detect, then check compiler
 | 
				
			||||||
| 
						 | 
					@ -272,8 +274,9 @@ if ($link ne "") {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ($flags =~ /^\-Y/) {
 | 
						if ($flags =~ /^\-Y/) {
 | 
				
			||||||
 | 
						    next if ($hostos eq 'SunOS');
 | 
				
			||||||
	    $linker_L .= "-Wl,". $flags . " ";
 | 
						    $linker_L .= "-Wl,". $flags . " ";
 | 
				
			||||||
	    }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ($flags =~ /^\-rpath\@/) {
 | 
						if ($flags =~ /^\-rpath\@/) {
 | 
				
			||||||
	    $flags =~ s/\@/\,/g;
 | 
						    $flags =~ s/\@/\,/g;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue