Commit 6b66ee91 authored by Mark Andrews's avatar Mark Andrews

define and use BACKTRACECFLAGS

parent ac49f1c5
...@@ -26,6 +26,7 @@ CINCLUDES = ${DNS_INCLUDES} ${ISC_INCLUDES} ${ISCCFG_INCLUDES} \ ...@@ -26,6 +26,7 @@ CINCLUDES = ${DNS_INCLUDES} ${ISC_INCLUDES} ${ISCCFG_INCLUDES} \
CDEFINES = CDEFINES =
CWARNINGS = CWARNINGS =
BACKTRACECFLAGS = @BACKTRACECFLAGS@
DNSLIBS = ../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@ DNSLIBS = ../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
ISCLIBS = ../../lib/isc/libisc.@A@ @DNS_CRYPTO_LIBS@ ISCLIBS = ../../lib/isc/libisc.@A@ @DNS_CRYPTO_LIBS@
...@@ -138,8 +139,8 @@ XSRCS = adb_test.c \ ...@@ -138,8 +139,8 @@ XSRCS = adb_test.c \
@BIND9_MAKE_RULES@ @BIND9_MAKE_RULES@
# disable optimization for backtrace test to get the expected result # disable optimization for backtrace test to get the expected result
BTTEST_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} -g ${ALWAYS_WARNINGS} \ BTTEST_CFLAGS = ${BACKTRACECFLAGS} ${EXT_CFLAGS} ${ALL_CPPFLAGS} -g \
${STD_CWARNINGS} ${CWARNINGS} ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
all_tests: ${XTARGETS} all_tests: ${XTARGETS}
......
...@@ -851,6 +851,7 @@ PERL ...@@ -851,6 +851,7 @@ PERL
ETAGS ETAGS
LN LN
ARFLAGS ARFLAGS
BACKTRACECFLAGS
CCNOOPT CCNOOPT
CCOPT CCOPT
STD_CWARNINGS STD_CWARNINGS
...@@ -11344,6 +11345,7 @@ fi ...@@ -11344,6 +11345,7 @@ fi
# Warn if the user specified libbind, which is now deprecated # Warn if the user specified libbind, which is now deprecated
# Check whether --enable-libbind was given. # Check whether --enable-libbind was given.
if test "${enable_libbind+set}" = set; then : if test "${enable_libbind+set}" = set; then :
...@@ -16138,7 +16140,8 @@ $as_echo "no" >&6; } ...@@ -16138,7 +16140,8 @@ $as_echo "no" >&6; }
fi fi
case "$host" in case "$host" in
*-hp-hpux*) *-hp-hpux*)
STD_CWARNINGS="$STD_CWARNINGS -Wl,+vnocompatwarnings" CFLAGS="$CFLAGS -Wl,+vnocompatwarnings"
BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
;; ;;
esac esac
else else
...@@ -16166,7 +16169,8 @@ else ...@@ -16166,7 +16169,8 @@ else
esac esac
CCOPT="$CCOPT -Ae -z" CCOPT="$CCOPT -Ae -z"
CCNOOPT="$CCNOOPT -Ae -z" CCNOOPT="$CCNOOPT -Ae -z"
STD_CWARNINGS="$STD_CWARNINGS -Wl,+vnocompatwarnings" CFLAGS="$CFLAGS -Wl,+vnocompatwarnings"
BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP' MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
;; ;;
*-sgi-irix*) *-sgi-irix*)
......
...@@ -51,6 +51,7 @@ AC_SUBST(STD_CDEFINES) ...@@ -51,6 +51,7 @@ AC_SUBST(STD_CDEFINES)
AC_SUBST(STD_CWARNINGS) AC_SUBST(STD_CWARNINGS)
AC_SUBST(CCOPT) AC_SUBST(CCOPT)
AC_SUBST(CCNOOPT) AC_SUBST(CCNOOPT)
AC_SUBST(BACKTRACECFLAGS)
# Warn if the user specified libbind, which is now deprecated # Warn if the user specified libbind, which is now deprecated
AC_ARG_ENABLE(libbind, [ --enable-libbind deprecated]) AC_ARG_ENABLE(libbind, [ --enable-libbind deprecated])
...@@ -1816,7 +1817,8 @@ if test "X$GCC" = "Xyes"; then ...@@ -1816,7 +1817,8 @@ if test "X$GCC" = "Xyes"; then
fi fi
case "$host" in case "$host" in
*-hp-hpux*) *-hp-hpux*)
STD_CWARNINGS="$STD_CWARNINGS -Wl,+vnocompatwarnings" CFLAGS="$CFLAGS -Wl,+vnocompatwarnings"
BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
;; ;;
esac esac
else else
...@@ -1844,7 +1846,8 @@ else ...@@ -1844,7 +1846,8 @@ else
esac esac
CCOPT="$CCOPT -Ae -z" CCOPT="$CCOPT -Ae -z"
CCNOOPT="$CCNOOPT -Ae -z" CCNOOPT="$CCNOOPT -Ae -z"
STD_CWARNINGS="$STD_CWARNINGS -Wl,+vnocompatwarnings" CFLAGS="$CFLAGS -Wl,+vnocompatwarnings"
BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP' MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
;; ;;
*-sgi-irix*) *-sgi-irix*)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment