zlib: use $(HOST_MAKE_ENV) when calling $(MAKE1)
authorGustavo Zacarias <gustavo.zacarias@free-electrons.com>
Tue, 13 Dec 2016 14:50:45 +0000 (11:50 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 13 Dec 2016 15:27:34 +0000 (16:27 +0100)
Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/zlib/zlib.mk

index d00ca75c037170cb5a9812542113c2164d9460e9..53eb84e1507c219dab6209fa89398d0e707a2cca 100644 (file)
@@ -48,7 +48,7 @@ define ZLIB_BUILD_CMDS
 endef
 
 define HOST_ZLIB_BUILD_CMDS
-       $(MAKE1) -C $(@D)
+       $(HOST_MAKE_ENV) $(MAKE1) -C $(@D)
 endef
 
 define ZLIB_INSTALL_STAGING_CMDS
@@ -70,7 +70,7 @@ ZLIB_POST_INSTALL_STAGING_HOOKS += ZLIB_RM_STATIC_STAGING
 endif
 
 define HOST_ZLIB_INSTALL_CMDS
-       $(MAKE1) -C $(@D) LDCONFIG=true install
+       $(HOST_MAKE_ENV) $(MAKE1) -C $(@D) LDCONFIG=true install
 endef
 
 $(eval $(generic-package))