X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/da8bb7068e6f63775a5b4dbf2fc198010653e672..a8f9543bbb8d062034160c9f336e4760f610f7d5:/include/package.mk?ds=inline diff --git a/include/package.mk b/include/package.mk index 01781c71c..c28aad824 100644 --- a/include/package.mk +++ b/include/package.mk @@ -290,7 +290,16 @@ define Build/Prepare endef define Build/Configure/Default - (cd $(PKG_BUILD_DIR)/$(3); \ + (cd $(PKG_BUILD_DIR) ; \ + [ -e configure.in ] && touch configure.in ; \ + [ -e aclocal.m4 ] && touch aclocal.m4 ; \ + [ -e Makefile.in ] && touch Makefile.in ; \ + [ -e configure ] && touch configure ; \ + [ -e acinclude.m4 ] && touch acinclude.m4 ; \ + [ -e config.h.in ] && touch config.h.in ; \ + [ -e configure.ac ] && touch configure.ac ; \ + ); + (cd $(PKG_BUILD_DIR)/$(strip $(3)); \ if [ -x configure ]; then \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \