autotools.mk: -B is not passed on by autoreconf, use -I instead - fixes PKG_MACRO_PATHS
[openwrt/openwrt.git] / include / autotools.mk
index 2851731ef3b3b5ac67514f5da7ef84c41dfc6b74..24f9b721ddf1ad401d8135cb8e5e7c395b320cf3 100644 (file)
@@ -39,7 +39,7 @@ define autoreconf
                                touch NEWS AUTHORS COPYING ChangeLog; \
                                $(AM_TOOL_PATHS) $(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s \
                                        -B $(STAGING_DIR_HOST)/share/aclocal \
-                                       $(patsubst %,-B %,$(5)) \
+                                       $(patsubst %,-I %,$(5)) \
                                        $(patsubst %,-I %,$(4)) $(4) || true; \
                        fi; \
                ) \