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

index 79452c02fb348f842d93492480356087162ccd2f..4b82c500a59e741fcc170041bb15a0e8358745f6 100644 (file)
@@ -47,7 +47,7 @@ POCO_MAKE_TARGET = all_release
 endif
 
 define POCO_CONFIGURE_CMDS
-       (cd $(@D); ./configure \
+       (cd $(@D); $(TARGET_MAKE_ENV) ./configure \
                --config=Linux          \
                --prefix=/usr           \
                --omit="$(POCO_OMIT)"   \
@@ -58,19 +58,19 @@ define POCO_CONFIGURE_CMDS
 endef
 
 define POCO_BUILD_CMDS
-       $(MAKE) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \
+       $(TARGET_MAKE_ENV) $(MAKE) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \
                MYSQL_LIBDIR=$(STAGING_DIR)/usr/lib/mysql \
                MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql \
                DEFAULT_TARGET=$(POCO_MAKE_TARGET) -C $(@D)
 endef
 
 define POCO_INSTALL_STAGING_CMDS
-       $(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) \
+       $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) \
                DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
 endef
 
 define POCO_INSTALL_TARGET_CMDS
-       $(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) \
+       $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) \
                DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
 endef