Travis, fix deprecation test to use CFLAGS and CPPFLAGS.

This commit is contained in:
W.C.A. Wijngaards 2021-03-24 10:07:18 +01:00
parent d56a1c38bc
commit e18c4f53aa
2 changed files with 6 additions and 6 deletions

View 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"

6
configure vendored
View file

@ -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"