CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR_HOSTPKG)/include/libxml2" \
LDFLAGS="$(HOST_LDFLAGS) -Wl,-rpath,$(STAGING_DIR_HOSTPKG)/lib" \
$(MAKE) -C "$(PKG_BUILD_DIR)/menuselect"
+ $(MAKE) -C "$(PKG_BUILD_DIR)" menuselect-tree
+ cd "$(PKG_BUILD_DIR)" && \
+ ./menuselect/menuselect \
+ --disable BUILD_NATIVE \
+ --enable LOW_MEMORY \
+ menuselect.makeopts
$(MAKE) -C "$(PKG_BUILD_DIR)" 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" \
+++ /dev/null
---- a/configure.ac
-+++ b/configure.ac
-@@ -1104,7 +1104,10 @@ fi
- AC_SUBST(AST_SHADOW_WARNINGS)
-
- AC_MSG_CHECKING(for -march=native support)
--if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
-+if test "${cross_compiling}" = "yes"; then
-+ AC_MSG_RESULT(cross-compile)
-+ AST_NATIVE_ARCH=0
-+elif $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
- AC_MSG_RESULT(yes)
- AST_NATIVE_ARCH=1
- else
CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR_HOSTPKG)/include/libxml2" \
LDFLAGS="$(HOST_LDFLAGS) -Wl,-rpath,$(STAGING_DIR_HOSTPKG)/lib" \
$(MAKE) -C "$(PKG_BUILD_DIR)/menuselect"
+ $(MAKE) -C "$(PKG_BUILD_DIR)" menuselect-tree
+ cd "$(PKG_BUILD_DIR)" && \
+ ./menuselect/menuselect \
+ --disable BUILD_NATIVE \
+ --enable LOW_MEMORY \
+ menuselect.makeopts
$(MAKE) -C "$(PKG_BUILD_DIR)" \
include/asterisk/version.h \
include/asterisk/buildopts.h defaults.h
- ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" \
+ ASTCFLAGS="$(EXTRA_CFLAGS)" \
ASTLDFLAGS="$(EXTRA_LDFLAGS)" \
$(MAKE) -C "$(PKG_BUILD_DIR)" \
ASTVARLIBDIR="/usr/lib/asterisk" \
+++ /dev/null
---- a/configure.ac
-+++ b/configure.ac
-@@ -1226,7 +1226,10 @@ fi
- AC_SUBST(AST_SHADOW_WARNINGS)
-
- AC_MSG_CHECKING(for -march=native support)
--if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
-+if test "${cross_compiling}" = "yes"; then
-+ AC_MSG_RESULT(cross-compile)
-+ AST_NATIVE_ARCH=0
-+elif $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
- AC_MSG_RESULT(yes)
- AST_NATIVE_ARCH=1
- else