mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Travis, fix deprecation test to use CFLAGS and CPPFLAGS.
This commit is contained in:
parent
d56a1c38bc
commit
e18c4f53aa
2 changed files with 6 additions and 6 deletions
|
|
@ -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
6
configure
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue