From b4311b950658a9bd4e7c99bca6d6516a67cac8ed Mon Sep 17 00:00:00 2001 From: Patrik Stridvall Date: Mon, 21 Mar 2016 13:53:01 +0100 Subject: [PATCH] asterisk-1.8.x-mod: Makefile: Enable compiler flags BETTER_BACKTRACES, DEBUG_THREADS, DONT_OPTIMIZE and MALLOC_DEBUG if CONFIG_DEBUG=y --- asterisk-1.8.x-mod/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/asterisk-1.8.x-mod/Makefile b/asterisk-1.8.x-mod/Makefile index 1b9932193..7004f49f4 100644 --- a/asterisk-1.8.x-mod/Makefile +++ b/asterisk-1.8.x-mod/Makefile @@ -401,6 +401,14 @@ EXTRA_LDFLAGS+= $(TARGET_LDFLAGS) ifeq ($(CONFIG_DEBUG),y) CONFIGURE_ARGS+= \ --enable-dev-mode + MENUSELECT_ARGS+= \ + --enable BETTER_BACKTRACES + MENUSELECT_ARGS+= \ + --enable DEBUG_THREADS + MENUSELECT_ARGS+= \ + --enable DONT_OPTIMIZE + MENUSELECT_ARGS+= \ + --enable MALLOC_DEBUG #MENUSELECT_ARGS+= \ # --enable LOW_MEMORY else