[openwrt/openwrt] build: autotools: fix cache path

LEDE Commits lede-commits at lists.infradead.org
Tue Apr 5 14:34:26 PDT 2022


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/1b595154560a8eda42f5509b242470f20ef9ef3a

commit 1b595154560a8eda42f5509b242470f20ef9ef3a
Author: Huangbin Zhan <zhanhb88 at gmail.com>
AuthorDate: Sat Oct 30 15:28:28 2021 +0800

    build: autotools: fix cache path
    
    the cache directory should be autom4te.cache in all $(PKG_AUTOMAKE_PATHS)
    rather than $(PKG_BUILD_DIR)/autom4te.cache only
    
    Signed-off-by: Huangbin Zhan <zhanhb88 at gmail.com>
    (cherry picked from commit 044ca149f36a08f56fe827a20aa113837c58cb40)
---
 include/autotools.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/autotools.mk b/include/autotools.mk
index 0f0d608b26..e9a7a82248 100644
--- a/include/autotools.mk
+++ b/include/autotools.mk
@@ -35,7 +35,7 @@ define autoreconf
 		$(patsubst %,rm -f %;,$(2)) \
 		$(foreach p,$(3), \
 			if [ -f $(p)/configure.ac ] || [ -f $(p)/configure.in ]; then \
-				[ -d $(p)/autom4te.cache ] && rm -rf autom4te.cache; \
+				[ -d $(p)/autom4te.cache ] && rm -rf $(p)/autom4te.cache; \
 				[ -e $(p)/config.rpath ] || \
 						ln -s $(SCRIPT_DIR)/config.rpath $(p)/config.rpath; \
 				touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; \




More information about the lede-commits mailing list