X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/1bba18de7a6c725ad4758393d329d50222a18f15..c56955241ecc1dc609836925fe4059cd938643d7:/include/autotools.mk diff --git a/include/autotools.mk b/include/autotools.mk index 24f9b721d..7fe376cc1 100644 --- a/include/autotools.mk +++ b/include/autotools.mk @@ -38,9 +38,12 @@ define autoreconf [ -d $(p)/autom4te.cache ] && rm -rf autom4te.cache; \ touch NEWS AUTHORS COPYING ChangeLog; \ $(AM_TOOL_PATHS) $(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s \ + $(if $(word 2,$(3)),--no-recursive) \ -B $(STAGING_DIR_HOST)/share/aclocal \ $(patsubst %,-I %,$(5)) \ $(patsubst %,-I %,$(4)) $(4) || true; \ + [ -e $(p)/config.rpath ] || \ + ln -s $(SCRIPT_DIR)/config.rpath $(p)/config.rpath; fi; \ ) \ );