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

index 68d81b735356c24a8aa6e7fa6edf9b3bfb0e3dec..f5a95eacc5127a70e90e16285ca1bf1e3c9da45d 100644 (file)
@@ -11,13 +11,13 @@ UNRAR_LICENSE = unrar
 UNRAR_LICENSE_FILES = license.txt
 
 define UNRAR_BUILD_CMDS
-       $(MAKE) CXX="$(TARGET_CXX)" STRIP="/bin/true" \
+       $(TARGET_MAKE_ENV) $(MAKE) CXX="$(TARGET_CXX)" STRIP="/bin/true" \
                CXXFLAGS="$(TARGET_CXXFLAGS) -pthread" \
                LDFLAGS="$(TARGET_LDFLAGS) -pthread" -C $(@D)
 endef
 
 define UNRAR_INSTALL_TARGET_CMDS
-       $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install
 endef
 
 $(eval $(generic-package))