mirror of
				https://github.com/rofl0r/proxychains-ng.git
				synced 2025-11-04 09:06:05 +00:00 
			
		
		
		
	configure: fix regression in detecting linker options
introduced in 83bfa0b61d, the check_link_silent
option always returned the result from the rm -f command rather than
the result from the compiler.
fixes #400
			
			
This commit is contained in:
		
							
								
								
									
										4
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								configure
									
									
									
									
										vendored
									
									
								
							@@ -50,8 +50,10 @@ check_compile_run() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
check_link_silent() {
 | 
					check_link_silent() {
 | 
				
			||||||
	printf "$2" > "$tmpc"
 | 
						printf "$2" > "$tmpc"
 | 
				
			||||||
	$CC $OUR_CPPFLAGS $CPPFLAGS $1 $CFLAGS "$tmpc" -o "$tmpc".out  >/dev/null 2>&1
 | 
						local res=0
 | 
				
			||||||
 | 
						$CC $OUR_CPPFLAGS $CPPFLAGS $1 $CFLAGS "$tmpc" -o "$tmpc".out  >/dev/null 2>&1 || res=1
 | 
				
			||||||
	rm -f "$tmpc".out
 | 
						rm -f "$tmpc".out
 | 
				
			||||||
 | 
						return $res
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
check_link() {
 | 
					check_link() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user