lua: use $(HOST_MAKE_ENV) when calling $(MAKE)
authorGustavo Zacarias <gustavo.zacarias@free-electrons.com>
Mon, 17 Oct 2016 16:06:18 +0000 (13:06 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 22 Oct 2016 13:19:24 +0000 (15:19 +0200)
Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/lua/lua.mk

index a7c2ef729364c33231b6b5c1c38dd244ae6bf333..131b88d04241b0fede5df364715eb96cbf2ee5c7 100644 (file)
@@ -75,7 +75,7 @@ define LUA_BUILD_CMDS
 endef
 
 define HOST_LUA_BUILD_CMDS
-       $(MAKE) \
+       $(HOST_MAKE_ENV) $(MAKE) \
        CFLAGS="$(HOST_LUA_CFLAGS)" \
        MYLDFLAGS="$(HOST_LDFLAGS)" \
        MYLIBS="$(HOST_LUA_MYLIBS)" \
@@ -94,7 +94,7 @@ define LUA_INSTALL_TARGET_CMDS
 endef
 
 define HOST_LUA_INSTALL_CMDS
-       $(MAKE) INSTALL_TOP="$(HOST_DIR)/usr" -C $(@D) install
+       $(HOST_MAKE_ENV) $(MAKE) INSTALL_TOP="$(HOST_DIR)/usr" -C $(@D) install
        $(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
                $(HOST_DIR)/usr/lib/pkgconfig/lua.pc
 endef