diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in index b8abd73f36..3c01837316 100644 --- a/package/Makefile.autotools.in +++ b/package/Makefile.autotools.in @@ -259,7 +259,7 @@ $(BUILD_DIR)/%/.stamp_configured: # Build $(BUILD_DIR)/%/.stamp_built: $(call MESSAGE,"Building") - $($(PKG)_MAKE_ENV) $($(PKG)_MAKE) $($(PKG)_MAKE_OPT) -C $(@D)/$($(PKG)_SUBDIR) + PATH=$(TARGET_PATH) $($(PKG)_MAKE_ENV) $($(PKG)_MAKE) $($(PKG)_MAKE_OPT) -C $(@D)/$($(PKG)_SUBDIR) $(Q)touch $@ # Install to staging dir