]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Travis, fix deprecation test to use CFLAGS and CPPFLAGS.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 24 Mar 2021 09:07:18 +0000 (10:07 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 24 Mar 2021 09:07:18 +0000 (10:07 +0100)
acx_nlnetlabs.m4
configure

index 993ad16c1b0dc2667a61208efae488ef5870ce3c..64b376238d359fdb636fedd13ea599ef0fb56c65 100644 (file)
@@ -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"
index 0407db3a0c9e5335bf15be0a65a2874220c2be84..d991794f28819a8ec94903be39d57ed0f9b05be0 100755 (executable)
--- 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"