diff --git a/include/autotools.mk b/include/autotools.mk index 68b5835e9..306b58802 100644 --- a/include/autotools.mk +++ b/include/autotools.mk @@ -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)/) \ )