Skip to contentSkip to conversation

zlib: use $(TARGET_MAKE_ENV) when calling $(MAKE1)

PATCH New gustavo.zacarias at free-electrons.com 2 participants 3 messages Dec 13, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 zlib: use $(TARGET_MAKE_ENV) when calling $(MAKE1)

From: Gustavo Zacarias <[email protected]>

---
 package/zlib/zlib.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
package/zlib/zlib.mk +3 -3
index aec9daf..d00ca75 100644
@@ -44,7 +44,7 @@ define HOST_ZLIB_CONFIGURE_CMDS
 endef
 
 define ZLIB_BUILD_CMDS
-	$(MAKE1) -C $(@D)
+	$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D)
 endef
 
 define HOST_ZLIB_BUILD_CMDS
@@ -52,11 +52,11 @@ define HOST_ZLIB_BUILD_CMDS
 endef
 
 define ZLIB_INSTALL_STAGING_CMDS
-	$(MAKE1) -C $(@D) DESTDIR=$(STAGING_DIR) LDCONFIG=true install
+	$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) DESTDIR=$(STAGING_DIR) LDCONFIG=true install
 endef
 
 define ZLIB_INSTALL_TARGET_CMDS
-	$(MAKE1) -C $(@D) DESTDIR=$(TARGET_DIR) LDCONFIG=true install
+	$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) DESTDIR=$(TARGET_DIR) LDCONFIG=true install
 endef
 
 # We don't care removing the .a from target, since it not used at link
Signature · 1 line
2.10.2
#1 lore raw

PATCH 2/2 zlib: use $(HOST_MAKE_ENV) when calling $(MAKE1)

From: Gustavo Zacarias <[email protected]>

---
 package/zlib/zlib.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/zlib/zlib.mk +2 -2
index d00ca75..53eb84e 100644
@@ -48,7 +48,7 @@ define ZLIB_BUILD_CMDS
 endef
 
 define HOST_ZLIB_BUILD_CMDS
-	$(MAKE1) -C $(@D)
+	$(HOST_MAKE_ENV) $(MAKE1) -C $(@D)
 endef
 
 define ZLIB_INSTALL_STAGING_CMDS
@@ -70,7 +70,7 @@ ZLIB_POST_INSTALL_STAGING_HOOKS += ZLIB_RM_STATIC_STAGING
 endif
 
 define HOST_ZLIB_INSTALL_CMDS
-	$(MAKE1) -C $(@D) LDCONFIG=true install
+	$(HOST_MAKE_ENV) $(MAKE1) -C $(@D) LDCONFIG=true install
 endef
 
 $(eval $(generic-package))
Signature · 1 line
2.10.2