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

index 5338f881663d967222f8e2d0a57547003ef703e4..d2487b714e4cdec678d07816b2a906714e8f6a4c 100644 (file)
@@ -27,14 +27,14 @@ ZIP_TARGET_CFLAGS = \
        $(filter-out -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS))
 
 define ZIP_BUILD_CMDS
-       $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
                CFLAGS="$(ZIP_TARGET_CFLAGS) $(ZIP_CFLAGS)" \
                AS="$(TARGET_CC) -c" \
                -f unix/Makefile generic
 endef
 
 define ZIP_INSTALL_TARGET_CMDS
-       $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install \
+       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install \
                prefix=$(TARGET_DIR)/usr
 endef