HOST_LUA_MYLIBS = -ldl
define LUA_BUILD_CMDS
- $(MAKE) \
+ $(TARGET_MAKE_ENV) $(MAKE) \
CC="$(TARGET_CC)" RANLIB="$(TARGET_RANLIB)" \
CFLAGS="$(TARGET_CFLAGS) $(LUA_CFLAGS)" \
MYLIBS="$(LUA_MYLIBS)" AR="$(TARGET_CROSS)ar rcu" \
endef
define LUA_INSTALL_STAGING_CMDS
- $(MAKE) INSTALL_TOP="$(STAGING_DIR)/usr" -C $(@D) install
+ $(TARGET_MAKE_ENV) $(MAKE) INSTALL_TOP="$(STAGING_DIR)/usr" -C $(@D) install
$(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
$(STAGING_DIR)/usr/lib/pkgconfig/lua.pc
endef
define LUA_INSTALL_TARGET_CMDS
- $(MAKE) INSTALL_TOP="$(TARGET_DIR)/usr" -C $(@D) install
+ $(TARGET_MAKE_ENV) $(MAKE) INSTALL_TOP="$(TARGET_DIR)/usr" -C $(@D) install
endef
define HOST_LUA_INSTALL_CMDS