From a6959ee715ad54b5b32960c7da6ec2c2a8fabe19 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 25 Dec 2018 17:58:54 +0000 Subject: [PATCH] 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). --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index e6030d3..fe503d7 100755 --- a/configure +++ b/configure @@ -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" ; } \