moarvm: use $(TARGET_MAKE_ENV) when calling $(MAKE)
authorGustavo Zacarias <gustavo.zacarias@free-electrons.com>
Mon, 17 Oct 2016 16:05:51 +0000 (13:05 -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/moarvm/moarvm.mk

index ee58f76600fb895f61f06d726ff1e1fea2d6fef8..fd054682b54c6a17b716afe94a6f90c8280701b9 100644 (file)
@@ -29,19 +29,19 @@ MOARVM_CONF_OPTS += --big-endian
 endif
 
 define MOARVM_CONFIGURE_CMDS
-       (cd $(@D); perl Configure.pl $(MOARVM_CONF_OPTS))
+       (cd $(@D); $(TARGET_MAKE_ENV) perl Configure.pl $(MOARVM_CONF_OPTS))
 endef
 
 define MOARVM_BUILD_CMDS
-       $(MAKE) -C $(@D)
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
 endef
 
 define MOARVM_INSTALL_STAGING_CMDS
-       $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
 endef
 
 define MOARVM_INSTALL_TARGET_CMDS
-       $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
 endef
 
 $(eval $(generic-package))