mirror of
				https://github.com/rofl0r/proxychains-ng.git
				synced 2025-11-04 00:56:03 +00:00 
			
		
		
		
	configure: force check_compile() to link an executable
by using -c (which just creates an object file), we don't catch implicit function declarations as an error (see discussion of #274).
This commit is contained in:
		
							
								
								
									
										2
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								configure
									
									
									
									
										vendored
									
									
								
							@@ -18,7 +18,7 @@ check_compile() {
 | 
			
		||||
	printf "checking %s ... " "$1"
 | 
			
		||||
	printf "$3" > "$tmpc"
 | 
			
		||||
	local res=0
 | 
			
		||||
	$CC $OUR_CPPFLAGS $CPPFLAGS $2 $CFLAGS -c "$tmpc" -o /dev/null >/dev/null 2>&1 \
 | 
			
		||||
	$CC $OUR_CPPFLAGS $CPPFLAGS $2 $CFLAGS "$tmpc" -o /dev/null >/dev/null 2>&1 \
 | 
			
		||||
	|| res=1
 | 
			
		||||
	test x$res = x0 && \
 | 
			
		||||
	{ printf "yes\n" ; test x"$2" = x || OUR_CPPFLAGS="$OUR_CPPFLAGS $2" ; } \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user