provide mipsel-openwrt-linux-uclibcgnueabi site script, fixes the majority of configu...
[openwrt/openwrt.git] / include / autotools.mk
index 2851731..7797031 100644 (file)
@@ -39,8 +39,10 @@ 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; \
+                               [ -e $(p)/config.rpath ] || \
+                                               ln -s $(SCRIPT_DIR)/config.rpath $(p)/config.rpath;
                        fi; \
                ) \
        );