From: W.C.A. Wijngaards Date: Wed, 24 Mar 2021 09:07:18 +0000 (+0100) Subject: Travis, fix deprecation test to use CFLAGS and CPPFLAGS. X-Git-Tag: release-1.13.2rc1~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e18c4f53aa465bf3b010e36b05bdd3dac20db9bb;p=thirdparty%2Funbound.git Travis, fix deprecation test to use CFLAGS and CPPFLAGS. --- diff --git a/acx_nlnetlabs.m4 b/acx_nlnetlabs.m4 index 993ad16c1..64b376238 100644 --- a/acx_nlnetlabs.m4 +++ b/acx_nlnetlabs.m4 @@ -889,10 +889,10 @@ AC_CACHE_VAL(cv_cc_deprecated_$cache, echo '$3' >conftest.c echo 'void f(){ $2 }' >>conftest.c echo "deprecation test for $1 results in" -echo "`$CC -c conftest.c 2>&1 `" +echo "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 `" echo "and from the commandline" -$CC -c conftest.c -if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then +$CC $CPPFLAGS $CFLAGS -c conftest.c +if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep deprecated`"; then eval "cv_cc_deprecated_$cache=no" else eval "cv_cc_deprecated_$cache=yes" diff --git a/configure b/configure index 0407db3a0..d991794f2 100755 --- a/configure +++ b/configure @@ -20152,10 +20152,10 @@ echo ' ' >conftest.c echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c echo "deprecation test for daemon results in" -echo "`$CC -c conftest.c 2>&1 `" +echo "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 `" echo "and from the commandline" -$CC -c conftest.c -if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then +$CC $CPPFLAGS $CFLAGS -c conftest.c +if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep deprecated`"; then eval "cv_cc_deprecated_$cache=no" else eval "cv_cc_deprecated_$cache=yes"