From 10020f41fb25c9905093288b7b33d93fee139f5d Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Wed, 19 Mar 2008 17:15:14 +0000 Subject: [PATCH] Merged revisions 109973 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r109973 | qwell | 2008-03-19 12:12:52 -0500 (Wed, 19 Mar 2008) | 5 lines People report bugs about Asterisk crashing with DO_CRASH enabled was getting a little silly... Now we only show certain cflags when you run configure with --enable-dev-mode (corresponding menuselect change to follow) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109974 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- Makefile | 5 ++++- build_tools/cflags-devmode.xml | 21 +++++++++++++++++++++ build_tools/cflags.xml | 19 ------------------- 3 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 build_tools/cflags-devmode.xml diff --git a/Makefile b/Makefile index 7bfc8ff4be..3392fead03 100644 --- a/Makefile +++ b/Makefile @@ -847,7 +847,7 @@ menuselect/nmenuselect: menuselect/makeopts menuselect/makeopts: $(MAKE_MENUSELECT) makeopts -menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) build_tools/cflags.xml sounds/sounds.xml build_tools/embed_modules.xml configure +menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) build_tools/cflags.xml build_tools/cflags-devmode.xml sounds/sounds.xml build_tools/embed_modules.xml configure @echo "Generating input for menuselect ..." @echo "" > $@ @echo >> $@ @@ -855,6 +855,9 @@ menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(di @for dir in $(sort $(filter-out main,$(MOD_SUBDIRS))); do $(SUBMAKE) -C $${dir} SUBDIR=$${dir} moduleinfo >> $@; done @for dir in $(sort $(filter-out main,$(MOD_SUBDIRS))); do $(SUBMAKE) -C $${dir} SUBDIR=$${dir} makeopts >> $@; done @cat build_tools/cflags.xml >> $@ + @if [ "${AST_DEVMODE}" = "yes" ]; then \ + cat build_tools/cflags-devmode.xml >> $@; \ + fi @cat build_tools/embed_modules.xml >> $@ @cat sounds/sounds.xml >> $@ @echo "" >> $@ diff --git a/build_tools/cflags-devmode.xml b/build_tools/cflags-devmode.xml new file mode 100644 index 0000000000..0836a85e0c --- /dev/null +++ b/build_tools/cflags-devmode.xml @@ -0,0 +1,21 @@ + + + + + + + + + DEBUG_THREADS + + + + + + + + + + + + diff --git a/build_tools/cflags.xml b/build_tools/cflags.xml index ece1e0d532..776160bb67 100644 --- a/build_tools/cflags.xml +++ b/build_tools/cflags.xml @@ -16,8 +16,6 @@ - - @@ -35,23 +33,8 @@ - - - - - - DEBUG_THREADS - - - - - - - - - BUSYDETECT_COMPARE_TONE_AND_SILENCE no @@ -63,6 +46,4 @@ no - -