asterisk-1.8.x-mod: Makefile: Turn off compiler flag LOW_MEMORY if CONFIG_DEBUG=y

This commit is contained in:
Patrik Stridvall 2016-03-21 13:50:16 +01:00
parent 30fcbbe797
commit d709112cec

View file

@ -401,6 +401,11 @@ EXTRA_LDFLAGS+= $(TARGET_LDFLAGS)
ifeq ($(CONFIG_DEBUG),y)
CONFIGURE_ARGS+= \
--enable-dev-mode
#MENUSELECT_ARGS+= \
# --enable LOW_MEMORY
else
MENUSELECT_ARGS+= \
--enable LOW_MEMORY
endif
define Build/Prepare
@ -424,7 +429,7 @@ define Build/Compile
include/asterisk/version.h \
include/asterisk/buildopts.h defaults.h \
makeopts.embed_rules
ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" \
ASTCFLAGS="$(EXTRA_CFLAGS)" \
ASTLDFLAGS="$(EXTRA_LDFLAGS)" \
$(MAKE) -C "$(PKG_BUILD_DIR)" \
ASTVARLIBDIR="/usr/lib/asterisk" \