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

index 0ea9ee5955233ffb5131d47c5fdefe8da8aeef87..a2d0bad656e902d06782e96909f960c9f608565e 100644 (file)
@@ -46,14 +46,14 @@ define AUFS_UTIL_BUILD_CMDS
                CPPFLAGS="$(AUFS_UTIL_HOST_CPPFLAGS)" \
                HOSTCC="$(HOSTCC)" HOSTLD="$(HOSTLD)" \
                INSTALL="$(INSTALL)" c2sh c2tmac
-       $(MAKE1) -C $(@D) \
+       $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
                $(TARGET_CONFIGURE_OPTS) \
                CPPFLAGS="$(AUFS_UTIL_CPPFLAGS)" \
                INSTALL="$(INSTALL)" all
 endef
 
 define AUFS_UTIL_INSTALL_TARGET_CMDS
-       $(MAKE) -C $(@D) INSTALL="$(INSTALL)" DESTDIR="$(TARGET_DIR)" install
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) INSTALL="$(INSTALL)" DESTDIR="$(TARGET_DIR)" install
 endef
 
 $(eval $(generic-package))