zlog: use $(TARGET_MAKE_ENV) when calling $(MAKE)
authorGustavo Zacarias <gustavo.zacarias@free-electrons.com>
Thu, 13 Oct 2016 22:13:12 +0000 (19:13 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 15 Oct 2016 12:16:38 +0000 (14:16 +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/zlog/zlog.mk

index a60e1b0dcadac9b3a0a42d5858845382f48b711d..4f7f46928dc555d725f58b5a4f1dfa070c25e775 100644 (file)
@@ -11,16 +11,16 @@ ZLOG_LICENSE_FILES = COPYING
 ZLOG_INSTALL_STAGING = YES
 
 define ZLOG_BUILD_CMDS
-       $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
+       $(TARGET_MAKE_ENV) $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
                -C $(@D) all
 endef
 
 define ZLOG_INSTALL_STAGING_CMDS
-       $(MAKE) PREFIX=$(STAGING_DIR)/usr -C $(@D) install
+       $(TARGET_MAKE_ENV) $(MAKE) PREFIX=$(STAGING_DIR)/usr -C $(@D) install
 endef
 
 define ZLOG_INSTALL_TARGET_CMDS
-       $(MAKE) PREFIX=$(TARGET_DIR)/usr -C $(@D) install
+       $(TARGET_MAKE_ENV) $(MAKE) PREFIX=$(TARGET_DIR)/usr -C $(@D) install
 endef
 
 $(eval $(generic-package))