aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xbuild_tools/make_buildopts_h4
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a5d8eae86..fb8466a35 100644
--- a/Makefile
+++ b/Makefile
@@ -192,7 +192,7 @@ ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declar
ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/autoconfig.h
ifeq ($(AST_DEVMODE),yes)
- ASTCFLAGS+=-Werror -Wunused $(AST_DECLARATION_AFTER_STATEMENT) -DAST_DEVMODE
+ ASTCFLAGS+=-Werror -Wunused $(AST_DECLARATION_AFTER_STATEMENT)
endif
ifneq ($(findstring BSD,$(OSARCH)),)
diff --git a/build_tools/make_buildopts_h b/build_tools/make_buildopts_h
index 9970c0c0b..6993e7083 100755
--- a/build_tools/make_buildopts_h
+++ b/build_tools/make_buildopts_h
@@ -11,3 +11,7 @@ TMP=`grep MENUSELECT_CFLAGS menuselect.makeopts | sed 's/MENUSELECT_CFLAGS\=//g'
for x in ${TMP}; do
echo "#define ${x} 1"
done
+if grep AST_DEVMODE makeopts | grep -q yes
+then
+ echo "#define AST_DEVMODE 1"
+fi