summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo.zacarias@free-electrons.com>2016-10-17 13:06:43 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-22 15:19:24 +0200
commit99f1e508f07b3d8a1869fb5a87e4cd71d6747ca0 (patch)
treebddc73c67d09a2eda21027b77edf0eb63d41cce3
parentcc5e9fe4bb0322f7e26fa369cd23923f32c1eeb4 (diff)
downloadbuildroot-99f1e508f07b3d8a1869fb5a87e4cd71d6747ca0.tar.gz
buildroot-99f1e508f07b3d8a1869fb5a87e4cd71d6747ca0.zip
binutils: use $(TARGET_MAKE_ENV) when calling $(MAKE)
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>
-rw-r--r--package/binutils/binutils.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 966cc793f7..ca481d25b1 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -108,16 +108,16 @@ endef
# We just want libbfd, libiberty and libopcodes,
# not the full-blown binutils in staging
define BINUTILS_INSTALL_STAGING_CMDS
- $(MAKE) -C $(@D)/bfd DESTDIR=$(STAGING_DIR) install
- $(MAKE) -C $(@D)/opcodes DESTDIR=$(STAGING_DIR) install
- $(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/bfd DESTDIR=$(STAGING_DIR) install
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/opcodes DESTDIR=$(STAGING_DIR) install
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
endef
# If we don't want full binutils on target
ifneq ($(BR2_PACKAGE_BINUTILS_TARGET),y)
define BINUTILS_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/bfd DESTDIR=$(TARGET_DIR) install
- $(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
endef
endif
OpenPOWER on IntegriCloud