[backfire] autotools.mk: the old libtool fixup never fully worked, correct it
[openwrt-10.03/.git] / include / autotools.mk
index 68b5835e97c0e1c7340cdbe7481ee4bc1472d2d9..306b58802e69bb47a3e1eb726f010745b81cb5bf 100644 (file)
@@ -17,7 +17,7 @@ PKG_LIBTOOL_PATHS?=$(CONFIGURE_PATH)
 
 # replace copies of ltmain.sh with the build system's version
 update_libtool_common = \
-       $(foreach p,$(LIBTOOL_PATHS), \
+       $(foreach p,$(PKG_LIBTOOL_PATHS), \
                $(call replace,ltmain.sh,$(STAGING_DIR)/host/share/libtool,$(p)/) \
                $(call replace,libtool.m4,$(STAGING_DIR)/host/share/aclocal,$(p)/) \
        )