diff --git a/net/asterisk-15.x/Makefile b/net/asterisk-15.x/Makefile index c191231..770e34b 100644 --- a/net/asterisk-15.x/Makefile +++ b/net/asterisk-15.x/Makefile @@ -420,6 +420,13 @@ define Build/Compile --disable BUILD_NATIVE \ $(if $(CONFIG_ASTERISK15_LOW_MEMORY),--enable LOW_MEMORY) \ menuselect.makeopts + # Hack: + # When changing anything in MENUSELECT_CFLAGS the file ".lastclean" + # gets deleted. E.g. when compiling on x86 for x86 "--disable + # BUILD_NATIVE" changes MENUSELECT_CFLAGS and the file gets removed. + # But that will result in a rebuild attempt of menuselect which will + # likely fail. Prevent that by recreating ".lastclean". + $(CP) "$(PKG_BUILD_DIR)/.cleancount" "$(PKG_BUILD_DIR)/.lastclean" $(call Build/Compile/Default,all install samples) endef